3 #define PY_SSIZE_T_CLEAN
6 #error Python headers needed to compile C extensions, please install development version of Python.
7 #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
8 #error Cython requires Python 2.6+ or Python 3.3+.
10 #define CYTHON_ABI "0_29_2"
11 #define CYTHON_HEX_VERSION 0x001D02F0
12 #define CYTHON_FUTURE_DIVISION 0
15 #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
17 #if !defined(WIN32) && !defined(MS_WINDOWS)
29 #define DL_IMPORT(t) t
32 #define DL_EXPORT(t) t
35 #ifndef HAVE_LONG_LONG
36 #if PY_VERSION_HEX >= 0x02070000
37 #define HAVE_LONG_LONG
41 #define PY_LONG_LONG LONG_LONG
44 #define Py_HUGE_VAL HUGE_VAL
47 #define CYTHON_COMPILING_IN_PYPY 1
48 #define CYTHON_COMPILING_IN_PYSTON 0
49 #define CYTHON_COMPILING_IN_CPYTHON 0
50 #undef CYTHON_USE_TYPE_SLOTS
51 #define CYTHON_USE_TYPE_SLOTS 0
52 #undef CYTHON_USE_PYTYPE_LOOKUP
53 #define CYTHON_USE_PYTYPE_LOOKUP 0
54 #if PY_VERSION_HEX < 0x03050000
55 #undef CYTHON_USE_ASYNC_SLOTS
56 #define CYTHON_USE_ASYNC_SLOTS 0
57 #elif !defined(CYTHON_USE_ASYNC_SLOTS)
58 #define CYTHON_USE_ASYNC_SLOTS 1
60 #undef CYTHON_USE_PYLIST_INTERNALS
61 #define CYTHON_USE_PYLIST_INTERNALS 0
62 #undef CYTHON_USE_UNICODE_INTERNALS
63 #define CYTHON_USE_UNICODE_INTERNALS 0
64 #undef CYTHON_USE_UNICODE_WRITER
65 #define CYTHON_USE_UNICODE_WRITER 0
66 #undef CYTHON_USE_PYLONG_INTERNALS
67 #define CYTHON_USE_PYLONG_INTERNALS 0
68 #undef CYTHON_AVOID_BORROWED_REFS
69 #define CYTHON_AVOID_BORROWED_REFS 1
70 #undef CYTHON_ASSUME_SAFE_MACROS
71 #define CYTHON_ASSUME_SAFE_MACROS 0
72 #undef CYTHON_UNPACK_METHODS
73 #define CYTHON_UNPACK_METHODS 0
74 #undef CYTHON_FAST_THREAD_STATE
75 #define CYTHON_FAST_THREAD_STATE 0
76 #undef CYTHON_FAST_PYCALL
77 #define CYTHON_FAST_PYCALL 0
78 #undef CYTHON_PEP489_MULTI_PHASE_INIT
79 #define CYTHON_PEP489_MULTI_PHASE_INIT 0
80 #undef CYTHON_USE_TP_FINALIZE
81 #define CYTHON_USE_TP_FINALIZE 0
82 #undef CYTHON_USE_DICT_VERSIONS
83 #define CYTHON_USE_DICT_VERSIONS 0
84 #undef CYTHON_USE_EXC_INFO_STACK
85 #define CYTHON_USE_EXC_INFO_STACK 0
86 #elif defined(PYSTON_VERSION)
87 #define CYTHON_COMPILING_IN_PYPY 0
88 #define CYTHON_COMPILING_IN_PYSTON 1
89 #define CYTHON_COMPILING_IN_CPYTHON 0
90 #ifndef CYTHON_USE_TYPE_SLOTS
91 #define CYTHON_USE_TYPE_SLOTS 1
93 #undef CYTHON_USE_PYTYPE_LOOKUP
94 #define CYTHON_USE_PYTYPE_LOOKUP 0
95 #undef CYTHON_USE_ASYNC_SLOTS
96 #define CYTHON_USE_ASYNC_SLOTS 0
97 #undef CYTHON_USE_PYLIST_INTERNALS
98 #define CYTHON_USE_PYLIST_INTERNALS 0
99 #ifndef CYTHON_USE_UNICODE_INTERNALS
100 #define CYTHON_USE_UNICODE_INTERNALS 1
102 #undef CYTHON_USE_UNICODE_WRITER
103 #define CYTHON_USE_UNICODE_WRITER 0
104 #undef CYTHON_USE_PYLONG_INTERNALS
105 #define CYTHON_USE_PYLONG_INTERNALS 0
106 #ifndef CYTHON_AVOID_BORROWED_REFS
107 #define CYTHON_AVOID_BORROWED_REFS 0
109 #ifndef CYTHON_ASSUME_SAFE_MACROS
110 #define CYTHON_ASSUME_SAFE_MACROS 1
112 #ifndef CYTHON_UNPACK_METHODS
113 #define CYTHON_UNPACK_METHODS 1
115 #undef CYTHON_FAST_THREAD_STATE
116 #define CYTHON_FAST_THREAD_STATE 0
117 #undef CYTHON_FAST_PYCALL
118 #define CYTHON_FAST_PYCALL 0
119 #undef CYTHON_PEP489_MULTI_PHASE_INIT
120 #define CYTHON_PEP489_MULTI_PHASE_INIT 0
121 #undef CYTHON_USE_TP_FINALIZE
122 #define CYTHON_USE_TP_FINALIZE 0
123 #undef CYTHON_USE_DICT_VERSIONS
124 #define CYTHON_USE_DICT_VERSIONS 0
125 #undef CYTHON_USE_EXC_INFO_STACK
126 #define CYTHON_USE_EXC_INFO_STACK 0
128 #define CYTHON_COMPILING_IN_PYPY 0
129 #define CYTHON_COMPILING_IN_PYSTON 0
130 #define CYTHON_COMPILING_IN_CPYTHON 1
131 #ifndef CYTHON_USE_TYPE_SLOTS
132 #define CYTHON_USE_TYPE_SLOTS 1
134 #if PY_VERSION_HEX < 0x02070000
135 #undef CYTHON_USE_PYTYPE_LOOKUP
136 #define CYTHON_USE_PYTYPE_LOOKUP 0
137 #elif !defined(CYTHON_USE_PYTYPE_LOOKUP)
138 #define CYTHON_USE_PYTYPE_LOOKUP 1
140 #if PY_MAJOR_VERSION < 3
141 #undef CYTHON_USE_ASYNC_SLOTS
142 #define CYTHON_USE_ASYNC_SLOTS 0
143 #elif !defined(CYTHON_USE_ASYNC_SLOTS)
144 #define CYTHON_USE_ASYNC_SLOTS 1
146 #if PY_VERSION_HEX < 0x02070000
147 #undef CYTHON_USE_PYLONG_INTERNALS
148 #define CYTHON_USE_PYLONG_INTERNALS 0
149 #elif !defined(CYTHON_USE_PYLONG_INTERNALS)
150 #define CYTHON_USE_PYLONG_INTERNALS 1
152 #ifndef CYTHON_USE_PYLIST_INTERNALS
153 #define CYTHON_USE_PYLIST_INTERNALS 1
155 #ifndef CYTHON_USE_UNICODE_INTERNALS
156 #define CYTHON_USE_UNICODE_INTERNALS 1
158 #if PY_VERSION_HEX < 0x030300F0
159 #undef CYTHON_USE_UNICODE_WRITER
160 #define CYTHON_USE_UNICODE_WRITER 0
161 #elif !defined(CYTHON_USE_UNICODE_WRITER)
162 #define CYTHON_USE_UNICODE_WRITER 1
164 #ifndef CYTHON_AVOID_BORROWED_REFS
165 #define CYTHON_AVOID_BORROWED_REFS 0
167 #ifndef CYTHON_ASSUME_SAFE_MACROS
168 #define CYTHON_ASSUME_SAFE_MACROS 1
170 #ifndef CYTHON_UNPACK_METHODS
171 #define CYTHON_UNPACK_METHODS 1
173 #ifndef CYTHON_FAST_THREAD_STATE
174 #define CYTHON_FAST_THREAD_STATE 1
176 #ifndef CYTHON_FAST_PYCALL
177 #define CYTHON_FAST_PYCALL 1
179 #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
180 #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000)
182 #ifndef CYTHON_USE_TP_FINALIZE
183 #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)
185 #ifndef CYTHON_USE_DICT_VERSIONS
186 #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1)
188 #ifndef CYTHON_USE_EXC_INFO_STACK
189 #define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3)
192 #if !defined(CYTHON_FAST_PYCCALL)
193 #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
195 #if CYTHON_USE_PYLONG_INTERNALS
196 #include "longintrepr.h"
201 enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P ==
sizeof(
void*)) };
204 #ifndef __has_attribute
205 #define __has_attribute(x) 0
207 #ifndef __has_cpp_attribute
208 #define __has_cpp_attribute(x) 0
210 #ifndef CYTHON_RESTRICT
211 #if defined(__GNUC__)
212 #define CYTHON_RESTRICT __restrict__
213 #elif defined(_MSC_VER) && _MSC_VER >= 1400
214 #define CYTHON_RESTRICT __restrict
215 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
216 #define CYTHON_RESTRICT restrict
218 #define CYTHON_RESTRICT
221 #ifndef CYTHON_UNUSED
222 # if defined(__GNUC__)
223 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
224 # define CYTHON_UNUSED __attribute__ ((__unused__))
226 # define CYTHON_UNUSED
228 # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
229 # define CYTHON_UNUSED __attribute__ ((__unused__))
231 # define CYTHON_UNUSED
234 #ifndef CYTHON_MAYBE_UNUSED_VAR
235 # if defined(__cplusplus)
236 template<
class T>
void CYTHON_MAYBE_UNUSED_VAR(
const T& ) { }
238 # define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x)
241 #ifndef CYTHON_NCP_UNUSED
242 # if CYTHON_COMPILING_IN_CPYTHON
243 # define CYTHON_NCP_UNUSED
245 # define CYTHON_NCP_UNUSED CYTHON_UNUSED
248 #define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
250 #ifndef _MSC_STDINT_H_
252 typedef unsigned char uint8_t;
253 typedef unsigned int uint32_t;
255 typedef unsigned __int8 uint8_t;
256 typedef unsigned __int32 uint32_t;
262 #ifndef CYTHON_FALLTHROUGH
263 #if defined(__cplusplus) && __cplusplus >= 201103L
264 #if __has_cpp_attribute(fallthrough)
265 #define CYTHON_FALLTHROUGH [[fallthrough]]
266 #elif __has_cpp_attribute(clang::fallthrough)
267 #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
268 #elif __has_cpp_attribute(gnu::fallthrough)
269 #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
272 #ifndef CYTHON_FALLTHROUGH
273 #if __has_attribute(fallthrough)
274 #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
276 #define CYTHON_FALLTHROUGH
279 #if defined(__clang__ ) && defined(__apple_build_version__)
280 #if __apple_build_version__ < 7000000
281 #undef CYTHON_FALLTHROUGH
282 #define CYTHON_FALLTHROUGH
288 #error "Cython files generated with the C++ option must be compiled with a C++ compiler."
290 #ifndef CYTHON_INLINE
291 #if defined(__clang__)
292 #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
294 #define CYTHON_INLINE inline
298 void __Pyx_call_destructor(
T& x) {
302 class __Pyx_FakeReference {
304 __Pyx_FakeReference() : ptr(NULL) { }
305 __Pyx_FakeReference(
const T& ref) : ptr(const_cast<
T*>(&ref)) { }
306 T *operator->() {
return ptr; }
307 T *operator&() {
return ptr; }
308 operator T&() {
return *ptr; }
309 template<
typename U>
bool operator ==(
U other) {
return *ptr == other; }
310 template<
typename U>
bool operator !=(
U other) {
return *ptr != other; }
315 #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
316 #define Py_OptimizeFlag 0
318 #define __PYX_BUILD_PY_SSIZE_T "n"
319 #define CYTHON_FORMAT_SSIZE_T "z"
320 #if PY_MAJOR_VERSION < 3
321 #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
322 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
323 PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
324 #define __Pyx_DefaultClassType PyClass_Type
326 #define __Pyx_BUILTIN_MODULE_NAME "builtins"
327 #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
328 PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
329 #define __Pyx_DefaultClassType PyType_Type
331 #ifndef Py_TPFLAGS_CHECKTYPES
332 #define Py_TPFLAGS_CHECKTYPES 0
334 #ifndef Py_TPFLAGS_HAVE_INDEX
335 #define Py_TPFLAGS_HAVE_INDEX 0
337 #ifndef Py_TPFLAGS_HAVE_NEWBUFFER
338 #define Py_TPFLAGS_HAVE_NEWBUFFER 0
340 #ifndef Py_TPFLAGS_HAVE_FINALIZE
341 #define Py_TPFLAGS_HAVE_FINALIZE 0
343 #ifndef METH_STACKLESS
344 #define METH_STACKLESS 0
346 #if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL)
347 #ifndef METH_FASTCALL
348 #define METH_FASTCALL 0x80
350 typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *
self, PyObject *
const *args, Py_ssize_t nargs);
351 typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *
self, PyObject *
const *args,
352 Py_ssize_t nargs, PyObject *kwnames);
354 #define __Pyx_PyCFunctionFast _PyCFunctionFast
355 #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
357 #if CYTHON_FAST_PYCCALL
358 #define __Pyx_PyFastCFunction_Check(func)\
359 ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)))))
361 #define __Pyx_PyFastCFunction_Check(func) 0
363 #if CYTHON_USE_DICT_VERSIONS
364 #define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
365 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
366 (version_var) = __PYX_GET_DICT_VERSION(dict);\
367 (cache_var) = (value);
368 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
369 static PY_UINT64_T __pyx_dict_version = 0;\
370 static PyObject *__pyx_dict_cached_value = NULL;\
371 if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
372 (VAR) = __pyx_dict_cached_value;\
374 (VAR) = __pyx_dict_cached_value = (LOOKUP);\
375 __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
379 #define __PYX_GET_DICT_VERSION(dict) (0)
380 #define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
381 #define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP);
383 #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
384 #define PyObject_Malloc(s) PyMem_Malloc(s)
385 #define PyObject_Free(p) PyMem_Free(p)
386 #define PyObject_Realloc(p) PyMem_Realloc(p)
388 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030400A1
389 #define PyMem_RawMalloc(n) PyMem_Malloc(n)
390 #define PyMem_RawRealloc(p, n) PyMem_Realloc(p, n)
391 #define PyMem_RawFree(p) PyMem_Free(p)
393 #if CYTHON_COMPILING_IN_PYSTON
394 #define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co)
395 #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
397 #define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0)
398 #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
400 #if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000
401 #define __Pyx_PyThreadState_Current PyThreadState_GET()
402 #elif PY_VERSION_HEX >= 0x03060000
403 #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
404 #elif PY_VERSION_HEX >= 0x03000000
405 #define __Pyx_PyThreadState_Current PyThreadState_GET()
407 #define __Pyx_PyThreadState_Current _PyThreadState_Current
409 #if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT)
410 #include "pythread.h"
411 #define Py_tss_NEEDS_INIT 0
412 typedef int Py_tss_t;
413 static CYTHON_INLINE
int PyThread_tss_create(Py_tss_t *key) {
414 *key = PyThread_create_key();
417 static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(
void) {
418 Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(
sizeof(Py_tss_t));
419 *key = Py_tss_NEEDS_INIT;
422 static CYTHON_INLINE
void PyThread_tss_free(Py_tss_t *key) {
425 static CYTHON_INLINE
int PyThread_tss_is_created(Py_tss_t *key) {
426 return *key != Py_tss_NEEDS_INIT;
428 static CYTHON_INLINE
void PyThread_tss_delete(Py_tss_t *key) {
429 PyThread_delete_key(*key);
430 *key = Py_tss_NEEDS_INIT;
432 static CYTHON_INLINE
int PyThread_tss_set(Py_tss_t *key,
void *value) {
433 return PyThread_set_key_value(*key, value);
435 static CYTHON_INLINE
void * PyThread_tss_get(Py_tss_t *key) {
436 return PyThread_get_key_value(*key);
438 #endif // TSS (Thread Specific Storage) API
439 #if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
440 #define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
442 #define __Pyx_PyDict_NewPresized(n) PyDict_New()
444 #if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION
445 #define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)
446 #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y)
448 #define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
449 #define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
451 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS
452 #define __Pyx_PyDict_GetItemStr(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
454 #define __Pyx_PyDict_GetItemStr(dict, name) PyDict_GetItem(dict, name)
456 #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
457 #define CYTHON_PEP393_ENABLED 1
458 #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\
459 0 : _PyUnicode_Ready((PyObject *)(op)))
460 #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u)
461 #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
462 #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u)
463 #define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u)
464 #define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u)
465 #define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i)
466 #define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch)
467 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
469 #define CYTHON_PEP393_ENABLED 0
470 #define PyUnicode_1BYTE_KIND 1
471 #define PyUnicode_2BYTE_KIND 2
472 #define PyUnicode_4BYTE_KIND 4
473 #define __Pyx_PyUnicode_READY(op) (0)
474 #define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u)
475 #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
476 #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111)
477 #define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE))
478 #define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u))
479 #define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
480 #define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch)
481 #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u))
483 #if CYTHON_COMPILING_IN_PYPY
484 #define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b)
485 #define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b)
487 #define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b)
488 #define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
489 PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
491 #if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
492 #define PyUnicode_Contains(u, s) PySequence_Contains(u, s)
494 #if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check)
495 #define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type)
497 #if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
498 #define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt)
500 #define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
501 #define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
502 #if PY_MAJOR_VERSION >= 3
503 #define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b)
505 #define __Pyx_PyString_Format(a, b) PyString_Format(a, b)
507 #if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
508 #define PyObject_ASCII(o) PyObject_Repr(o)
510 #if PY_MAJOR_VERSION >= 3
511 #define PyBaseString_Type PyUnicode_Type
512 #define PyStringObject PyUnicodeObject
513 #define PyString_Type PyUnicode_Type
514 #define PyString_Check PyUnicode_Check
515 #define PyString_CheckExact PyUnicode_CheckExact
516 #define PyObject_Unicode PyObject_Str
518 #if PY_MAJOR_VERSION >= 3
519 #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
520 #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
522 #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
523 #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
525 #ifndef PySet_CheckExact
526 #define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type)
528 #if CYTHON_ASSUME_SAFE_MACROS
529 #define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq)
531 #define __Pyx_PySequence_SIZE(seq) PySequence_Size(seq)
533 #if PY_MAJOR_VERSION >= 3
534 #define PyIntObject PyLongObject
535 #define PyInt_Type PyLong_Type
536 #define PyInt_Check(op) PyLong_Check(op)
537 #define PyInt_CheckExact(op) PyLong_CheckExact(op)
538 #define PyInt_FromString PyLong_FromString
539 #define PyInt_FromUnicode PyLong_FromUnicode
540 #define PyInt_FromLong PyLong_FromLong
541 #define PyInt_FromSize_t PyLong_FromSize_t
542 #define PyInt_FromSsize_t PyLong_FromSsize_t
543 #define PyInt_AsLong PyLong_AsLong
544 #define PyInt_AS_LONG PyLong_AS_LONG
545 #define PyInt_AsSsize_t PyLong_AsSsize_t
546 #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
547 #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
548 #define PyNumber_Int PyNumber_Long
550 #if PY_MAJOR_VERSION >= 3
551 #define PyBoolObject PyLongObject
553 #if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
554 #ifndef PyUnicode_InternFromString
555 #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
558 #if PY_VERSION_HEX < 0x030200A4
559 typedef long Py_hash_t;
560 #define __Pyx_PyInt_FromHash_t PyInt_FromLong
561 #define __Pyx_PyInt_AsHash_t PyInt_AsLong
563 #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
564 #define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t
566 #if PY_MAJOR_VERSION >= 3
567 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : (Py_INCREF(func), func))
569 #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
571 #if CYTHON_USE_ASYNC_SLOTS
572 #if PY_VERSION_HEX >= 0x030500B1
573 #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
574 #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
576 #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
579 #define __Pyx_PyType_AsAsync(obj) NULL
581 #ifndef __Pyx_PyAsyncMethodsStruct
586 } __Pyx_PyAsyncMethodsStruct;
589 #if defined(WIN32) || defined(MS_WINDOWS)
590 #define _USE_MATH_DEFINES
594 #define __PYX_NAN() ((float) NAN)
596 static CYTHON_INLINE
float __PYX_NAN() {
598 memset(&value, 0xFF,
sizeof(value));
602 #if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
603 #define __Pyx_truncl trunc
605 #define __Pyx_truncl truncl
609 #define __PYX_ERR(f_index, lineno, Ln_error) \
611 __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \
614 #ifndef __PYX_EXTERN_C
616 #define __PYX_EXTERN_C extern "C"
618 #define __PYX_EXTERN_C extern
622 #define __PYX_HAVE__cmeshTools
623 #define __PYX_HAVE_API__cmeshTools
627 #include "numpy/arrayobject.h"
628 #include "numpy/ufuncobject.h"
630 #include "pythread.h"
637 #if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
638 #define CYTHON_WITHOUT_ASSERTIONS
641 typedef struct {PyObject **p;
const char *
s;
const Py_ssize_t
n;
const char* encoding;
642 const char is_unicode;
const char is_str;
const char intern; } __Pyx_StringTabEntry;
644 #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
645 #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0
646 #define __PYX_DEFAULT_STRING_ENCODING ""
647 #define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
648 #define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
649 #define __Pyx_uchar_cast(c) ((unsigned char)c)
650 #define __Pyx_long_cast(x) ((long)x)
651 #define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\
652 (sizeof(type) < sizeof(Py_ssize_t)) ||\
653 (sizeof(type) > sizeof(Py_ssize_t) &&\
654 likely(v < (type)PY_SSIZE_T_MAX ||\
655 v == (type)PY_SSIZE_T_MAX) &&\
656 (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
657 v == (type)PY_SSIZE_T_MIN))) ||\
658 (sizeof(type) == sizeof(Py_ssize_t) &&\
659 (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
660 v == (type)PY_SSIZE_T_MAX))) )
661 static CYTHON_INLINE
int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
662 return (
size_t) i < (size_t) limit;
664 #if defined (__cplusplus) && __cplusplus >= 201103L
666 #define __Pyx_sst_abs(value) std::abs(value)
667 #elif SIZEOF_INT >= SIZEOF_SIZE_T
668 #define __Pyx_sst_abs(value) abs(value)
669 #elif SIZEOF_LONG >= SIZEOF_SIZE_T
670 #define __Pyx_sst_abs(value) labs(value)
671 #elif defined (_MSC_VER)
672 #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
673 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
674 #define __Pyx_sst_abs(value) llabs(value)
675 #elif defined (__GNUC__)
676 #define __Pyx_sst_abs(value) __builtin_llabs(value)
678 #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
680 static CYTHON_INLINE
const char* __Pyx_PyObject_AsString(PyObject*);
681 static CYTHON_INLINE
const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
682 #define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
683 #define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
684 #define __Pyx_PyBytes_FromString PyBytes_FromString
685 #define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
686 static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(
const char*);
687 #if PY_MAJOR_VERSION < 3
688 #define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString
689 #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
691 #define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString
692 #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
694 #define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s))
695 #define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AS_STRING(s))
696 #define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AS_STRING(s))
697 #define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AS_STRING(s))
698 #define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AS_STRING(s))
699 #define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AS_STRING(s))
700 #define __Pyx_PyObject_AsWritableString(s) ((char*) __Pyx_PyObject_AsString(s))
701 #define __Pyx_PyObject_AsWritableSString(s) ((signed char*) __Pyx_PyObject_AsString(s))
702 #define __Pyx_PyObject_AsWritableUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s))
703 #define __Pyx_PyObject_AsSString(s) ((const signed char*) __Pyx_PyObject_AsString(s))
704 #define __Pyx_PyObject_AsUString(s) ((const unsigned char*) __Pyx_PyObject_AsString(s))
705 #define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s)
706 #define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s)
707 #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s)
708 #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s)
709 #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
710 static CYTHON_INLINE
size_t __Pyx_Py_UNICODE_strlen(
const Py_UNICODE *
u) {
711 const Py_UNICODE *u_end =
u;
713 return (
size_t)(u_end -
u - 1);
715 #define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
716 #define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
717 #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode
718 #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
719 #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
720 static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(
long b);
721 static CYTHON_INLINE
int __Pyx_PyObject_IsTrue(PyObject*);
722 static CYTHON_INLINE
int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
723 static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
724 #define __Pyx_PySequence_Tuple(obj)\
725 (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
726 static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
727 static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(
size_t);
728 #if CYTHON_ASSUME_SAFE_MACROS
729 #define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
731 #define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
733 #define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
734 #if PY_MAJOR_VERSION >= 3
735 #define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
737 #define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
739 #define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x))
740 #if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
741 static int __Pyx_sys_getdefaultencoding_not_ascii;
742 static int __Pyx_init_sys_getdefaultencoding_params(
void) {
744 PyObject* default_encoding = NULL;
745 PyObject* ascii_chars_u = NULL;
746 PyObject* ascii_chars_b = NULL;
747 const char* default_encoding_c;
748 sys = PyImport_ImportModule(
"sys");
750 default_encoding = PyObject_CallMethod(sys, (
char*)
"getdefaultencoding", NULL);
752 if (!default_encoding)
goto bad;
753 default_encoding_c = PyBytes_AsString(default_encoding);
754 if (!default_encoding_c)
goto bad;
755 if (strcmp(default_encoding_c,
"ascii") == 0) {
756 __Pyx_sys_getdefaultencoding_not_ascii = 0;
758 char ascii_chars[128];
760 for (
c = 0;
c < 128;
c++) {
763 __Pyx_sys_getdefaultencoding_not_ascii = 1;
764 ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
765 if (!ascii_chars_u)
goto bad;
766 ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
767 if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
770 "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
774 Py_DECREF(ascii_chars_u);
775 Py_DECREF(ascii_chars_b);
777 Py_DECREF(default_encoding);
780 Py_XDECREF(default_encoding);
781 Py_XDECREF(ascii_chars_u);
782 Py_XDECREF(ascii_chars_b);
786 #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
787 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
789 #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
790 #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
791 static char* __PYX_DEFAULT_STRING_ENCODING;
792 static int __Pyx_init_sys_getdefaultencoding_params(
void) {
794 PyObject* default_encoding = NULL;
795 char* default_encoding_c;
796 sys = PyImport_ImportModule(
"sys");
798 default_encoding = PyObject_CallMethod(sys, (
char*) (
const char*)
"getdefaultencoding", NULL);
800 if (!default_encoding)
goto bad;
801 default_encoding_c = PyBytes_AsString(default_encoding);
802 if (!default_encoding_c)
goto bad;
803 __PYX_DEFAULT_STRING_ENCODING = (
char*) malloc(strlen(default_encoding_c) + 1);
804 if (!__PYX_DEFAULT_STRING_ENCODING)
goto bad;
805 strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
806 Py_DECREF(default_encoding);
809 Py_XDECREF(default_encoding);
817 #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
818 #define likely(x) __builtin_expect(!!(x), 1)
819 #define unlikely(x) __builtin_expect(!!(x), 0)
821 #define likely(x) (x)
822 #define unlikely(x) (x)
824 static CYTHON_INLINE
void __Pyx_pretend_to_initialize(
void* ptr) { (void)ptr; }
826 static PyObject *__pyx_m = NULL;
827 static PyObject *__pyx_d;
828 static PyObject *__pyx_b;
829 static PyObject *__pyx_cython_runtime = NULL;
830 static PyObject *__pyx_empty_tuple;
831 static PyObject *__pyx_empty_bytes;
832 static PyObject *__pyx_empty_unicode;
833 static int __pyx_lineno;
834 static int __pyx_clineno = 0;
835 static const char * __pyx_cfilenm= __FILE__;
836 static const char *__pyx_filename;
839 #if !defined(CYTHON_CCOMPLEX)
840 #if defined(__cplusplus)
841 #define CYTHON_CCOMPLEX 1
842 #elif defined(_Complex_I)
843 #define CYTHON_CCOMPLEX 1
845 #define CYTHON_CCOMPLEX 0
855 #if CYTHON_CCOMPLEX && !defined(__cplusplus) && defined(__sun__) && defined(__GNUC__)
857 #define _Complex_I 1.0fj
861 static const char *__pyx_f[] = {
863 "proteus/cmeshTools.pyx",
864 "proteus/cmeshTools.pxd",
865 "linux/lib/python3.7/site-packages/Cython/Includes/numpy/__init__.pxd",
866 "linux/lib/python3.7/site-packages/Cython/Includes/cpython/type.pxd",
869 #ifndef __PYX_FORCE_INIT_THREADS
870 #define __PYX_FORCE_INIT_THREADS 0
874 #define __Pyx_PyGILState_Ensure PyGILState_Ensure
875 #define __Pyx_PyGILState_Release PyGILState_Release
876 #define __Pyx_FastGIL_Remember()
877 #define __Pyx_FastGIL_Forget()
878 #define __Pyx_FastGilFuncInit()
881 #define IS_UNSIGNED(type) (((type) -1) > 0)
882 struct __Pyx_StructField_;
883 #define __PYX_BUF_FLAGS_PACKED_STRUCT (1 << 0)
886 struct __Pyx_StructField_* fields;
894 typedef struct __Pyx_StructField_ {
895 __Pyx_TypeInfo* type;
900 __Pyx_StructField* field;
901 size_t parent_offset;
902 } __Pyx_BufFmt_StackElem;
904 __Pyx_StructField root;
905 __Pyx_BufFmt_StackElem* head;
907 size_t new_count, enc_count;
908 size_t struct_alignment;
914 } __Pyx_BufFmt_Context;
917 #include <pythread.h>
918 #ifndef CYTHON_ATOMICS
919 #define CYTHON_ATOMICS 1
921 #define __pyx_atomic_int_type int
922 #if CYTHON_ATOMICS && __GNUC__ >= 4 && (__GNUC_MINOR__ > 1 ||\
923 (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL >= 2)) &&\
925 #define __pyx_atomic_incr_aligned(value, lock) __sync_fetch_and_add(value, 1)
926 #define __pyx_atomic_decr_aligned(value, lock) __sync_fetch_and_sub(value, 1)
927 #ifdef __PYX_DEBUG_ATOMICS
928 #warning "Using GNU atomics"
930 #elif CYTHON_ATOMICS && defined(_MSC_VER) && 0
932 #undef __pyx_atomic_int_type
933 #define __pyx_atomic_int_type LONG
934 #define __pyx_atomic_incr_aligned(value, lock) InterlockedIncrement(value)
935 #define __pyx_atomic_decr_aligned(value, lock) InterlockedDecrement(value)
936 #ifdef __PYX_DEBUG_ATOMICS
937 #pragma message ("Using MSVC atomics")
939 #elif CYTHON_ATOMICS && (defined(__ICC) || defined(__INTEL_COMPILER)) && 0
940 #define __pyx_atomic_incr_aligned(value, lock) _InterlockedIncrement(value)
941 #define __pyx_atomic_decr_aligned(value, lock) _InterlockedDecrement(value)
942 #ifdef __PYX_DEBUG_ATOMICS
943 #warning "Using Intel atomics"
946 #undef CYTHON_ATOMICS
947 #define CYTHON_ATOMICS 0
948 #ifdef __PYX_DEBUG_ATOMICS
949 #warning "Not using atomics"
952 typedef volatile __pyx_atomic_int_type __pyx_atomic_int;
954 #define __pyx_add_acquisition_count(memview)\
955 __pyx_atomic_incr_aligned(__pyx_get_slice_count_pointer(memview), memview->lock)
956 #define __pyx_sub_acquisition_count(memview)\
957 __pyx_atomic_decr_aligned(__pyx_get_slice_count_pointer(memview), memview->lock)
959 #define __pyx_add_acquisition_count(memview)\
960 __pyx_add_acquisition_count_locked(__pyx_get_slice_count_pointer(memview), memview->lock)
961 #define __pyx_sub_acquisition_count(memview)\
962 __pyx_sub_acquisition_count_locked(__pyx_get_slice_count_pointer(memview), memview->lock)
966 struct __pyx_memoryview_obj;
968 struct __pyx_memoryview_obj *memview;
971 Py_ssize_t strides[8];
972 Py_ssize_t suboffsets[8];
973 } __Pyx_memviewslice;
974 #define __Pyx_MemoryView_Len(m) (m.shape[0])
984 typedef npy_int8 __pyx_t_5numpy_int8_t;
993 typedef npy_int16 __pyx_t_5numpy_int16_t;
1002 typedef npy_int32 __pyx_t_5numpy_int32_t;
1011 typedef npy_int64 __pyx_t_5numpy_int64_t;
1020 typedef npy_uint8 __pyx_t_5numpy_uint8_t;
1029 typedef npy_uint16 __pyx_t_5numpy_uint16_t;
1038 typedef npy_uint32 __pyx_t_5numpy_uint32_t;
1047 typedef npy_uint64 __pyx_t_5numpy_uint64_t;
1056 typedef npy_float32 __pyx_t_5numpy_float32_t;
1065 typedef npy_float64 __pyx_t_5numpy_float64_t;
1074 typedef npy_long __pyx_t_5numpy_int_t;
1083 typedef npy_longlong __pyx_t_5numpy_long_t;
1092 typedef npy_longlong __pyx_t_5numpy_longlong_t;
1101 typedef npy_ulong __pyx_t_5numpy_uint_t;
1110 typedef npy_ulonglong __pyx_t_5numpy_ulong_t;
1119 typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
1128 typedef npy_intp __pyx_t_5numpy_intp_t;
1137 typedef npy_uintp __pyx_t_5numpy_uintp_t;
1146 typedef npy_double __pyx_t_5numpy_float_t;
1155 typedef npy_double __pyx_t_5numpy_double_t;
1164 typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
1168 typedef ::std::complex< float > __pyx_t_float_complex;
1170 typedef float _Complex __pyx_t_float_complex;
1173 typedef struct {
float real, imag; } __pyx_t_float_complex;
1175 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float,
float);
1180 typedef ::std::complex< double > __pyx_t_double_complex;
1182 typedef double _Complex __pyx_t_double_complex;
1185 typedef struct {
double real, imag; } __pyx_t_double_complex;
1187 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double,
double);
1191 struct __pyx_obj_10cmeshTools_CMesh;
1192 struct __pyx_obj_10cmeshTools_CMultilevelMesh;
1193 struct __pyx_array_obj;
1194 struct __pyx_MemviewEnum_obj;
1195 struct __pyx_memoryview_obj;
1196 struct __pyx_memoryviewslice_obj;
1205 typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
1214 typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
1223 typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
1232 typedef npy_cdouble __pyx_t_5numpy_complex_t;
1241 struct __pyx_obj_10cmeshTools_CMesh {
1304 struct __pyx_obj_10cmeshTools_CMultilevelMesh {
1308 PyObject *cmeshList;
1309 PyObject *elementParentsArrayList;
1310 PyObject *elementChildrenArrayList;
1311 PyObject *elementChildrenOffsetsList;
1322 struct __pyx_array_obj {
1324 struct __pyx_vtabstruct_array *__pyx_vtab;
1330 Py_ssize_t *_strides;
1331 Py_ssize_t itemsize;
1334 void (*callback_free_data)(
void *);
1336 int dtype_is_object;
1347 struct __pyx_MemviewEnum_obj {
1360 struct __pyx_memoryview_obj {
1362 struct __pyx_vtabstruct_memoryview *__pyx_vtab;
1365 PyObject *_array_interface;
1366 PyThread_type_lock lock;
1367 __pyx_atomic_int acquisition_count[2];
1368 __pyx_atomic_int *acquisition_count_aligned_p;
1371 int dtype_is_object;
1372 __Pyx_TypeInfo *typeinfo;
1383 struct __pyx_memoryviewslice_obj {
1384 struct __pyx_memoryview_obj __pyx_base;
1385 __Pyx_memviewslice from_slice;
1386 PyObject *from_object;
1387 PyObject *(*to_object_func)(
char *);
1388 int (*to_dtype_func)(
char *, PyObject *);
1401 struct __pyx_vtabstruct_array {
1402 PyObject *(*get_memview)(
struct __pyx_array_obj *);
1404 static struct __pyx_vtabstruct_array *__pyx_vtabptr_array;
1415 struct __pyx_vtabstruct_memoryview {
1416 char *(*get_item_pointer)(
struct __pyx_memoryview_obj *, PyObject *);
1417 PyObject *(*is_slice)(
struct __pyx_memoryview_obj *, PyObject *);
1418 PyObject *(*setitem_slice_assignment)(
struct __pyx_memoryview_obj *, PyObject *, PyObject *);
1419 PyObject *(*setitem_slice_assign_scalar)(
struct __pyx_memoryview_obj *,
struct __pyx_memoryview_obj *, PyObject *);
1420 PyObject *(*setitem_indexed)(
struct __pyx_memoryview_obj *, PyObject *, PyObject *);
1421 PyObject *(*convert_item_to_object)(
struct __pyx_memoryview_obj *,
char *);
1422 PyObject *(*assign_item_from_object)(
struct __pyx_memoryview_obj *,
char *, PyObject *);
1424 static struct __pyx_vtabstruct_memoryview *__pyx_vtabptr_memoryview;
1435 struct __pyx_vtabstruct__memoryviewslice {
1436 struct __pyx_vtabstruct_memoryview __pyx_base;
1438 static struct __pyx_vtabstruct__memoryviewslice *__pyx_vtabptr__memoryviewslice;
1442 #ifndef CYTHON_REFNANNY
1443 #define CYTHON_REFNANNY 0
1447 void (*INCREF)(
void*, PyObject*, int);
1448 void (*DECREF)(
void*, PyObject*, int);
1449 void (*GOTREF)(
void*, PyObject*, int);
1450 void (*GIVEREF)(
void*, PyObject*, int);
1451 void* (*SetupContext)(
const char*, int,
const char*);
1452 void (*FinishContext)(
void**);
1453 } __Pyx_RefNannyAPIStruct;
1454 static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
1455 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(
const char *modname);
1456 #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
1458 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
1460 PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
1461 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
1462 PyGILState_Release(__pyx_gilstate_save);\
1464 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
1467 #define __Pyx_RefNannySetupContext(name, acquire_gil)\
1468 __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
1470 #define __Pyx_RefNannyFinishContext()\
1471 __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
1472 #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1473 #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1474 #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1475 #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
1476 #define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
1477 #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
1478 #define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
1479 #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
1481 #define __Pyx_RefNannyDeclarations
1482 #define __Pyx_RefNannySetupContext(name, acquire_gil)
1483 #define __Pyx_RefNannyFinishContext()
1484 #define __Pyx_INCREF(r) Py_INCREF(r)
1485 #define __Pyx_DECREF(r) Py_DECREF(r)
1486 #define __Pyx_GOTREF(r)
1487 #define __Pyx_GIVEREF(r)
1488 #define __Pyx_XINCREF(r) Py_XINCREF(r)
1489 #define __Pyx_XDECREF(r) Py_XDECREF(r)
1490 #define __Pyx_XGOTREF(r)
1491 #define __Pyx_XGIVEREF(r)
1493 #define __Pyx_XDECREF_SET(r, v) do {\
1494 PyObject *tmp = (PyObject *) r;\
1495 r = v; __Pyx_XDECREF(tmp);\
1497 #define __Pyx_DECREF_SET(r, v) do {\
1498 PyObject *tmp = (PyObject *) r;\
1499 r = v; __Pyx_DECREF(tmp);\
1501 #define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
1502 #define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)
1505 #if CYTHON_USE_TYPE_SLOTS
1506 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
1508 #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
1512 static PyObject *__Pyx_GetBuiltinName(PyObject *name);
1515 static void __Pyx_RaiseArgtupleInvalid(
const char* func_name,
int exact,
1516 Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);
1519 static int __Pyx_CheckKeywordStrings(PyObject *kwdict,
const char* function_name,
int kw_allowed);
1522 #if CYTHON_USE_DICT_VERSIONS
1523 #define __Pyx_GetModuleGlobalName(var, name) {\
1524 static PY_UINT64_T __pyx_dict_version = 0;\
1525 static PyObject *__pyx_dict_cached_value = NULL;\
1526 (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
1527 (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
1528 __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
1530 #define __Pyx_GetModuleGlobalNameUncached(var, name) {\
1531 PY_UINT64_T __pyx_dict_version;\
1532 PyObject *__pyx_dict_cached_value;\
1533 (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
1535 static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
1537 #define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name)
1538 #define __Pyx_GetModuleGlobalNameUncached(var, name) (var) = __Pyx__GetModuleGlobalName(name)
1539 static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
1543 #if CYTHON_FAST_PYCCALL
1544 static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs);
1546 #define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL)
1550 #if CYTHON_FAST_PYCALL
1551 #define __Pyx_PyFunction_FastCall(func, args, nargs)\
1552 __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
1553 #if 1 || PY_VERSION_HEX < 0x030600B1
1554 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args,
int nargs, PyObject *kwargs);
1556 #define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs)
1558 #define __Pyx_BUILD_ASSERT_EXPR(cond)\
1559 (sizeof(char [1 - 2*!(cond)]) - 1)
1560 #ifndef Py_MEMBER_SIZE
1561 #define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
1563 static size_t __pyx_pyframe_localsplus_offset = 0;
1564 #include "frameobject.h"
1565 #define __Pxy_PyFrame_Initialize_Offsets()\
1566 ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\
1567 (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)))
1568 #define __Pyx_PyFrame_GetLocalsplus(frame)\
1569 (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset))
1573 #if CYTHON_COMPILING_IN_CPYTHON
1574 static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
1576 #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
1580 static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject*
function, PyObject* arg1, PyObject* arg2);
1583 #if CYTHON_COMPILING_IN_CPYTHON
1584 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
1588 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);
1591 static CYTHON_INLINE
int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type);
1594 #if CYTHON_FAST_THREAD_STATE
1595 #define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate;
1596 #define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current;
1597 #define __Pyx_PyErr_Occurred() __pyx_tstate->curexc_type
1599 #define __Pyx_PyThreadState_declare
1600 #define __Pyx_PyThreadState_assign
1601 #define __Pyx_PyErr_Occurred() PyErr_Occurred()
1605 #if CYTHON_FAST_THREAD_STATE
1606 #define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
1607 #define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
1608 #define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
1609 #define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
1610 #define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
1611 static CYTHON_INLINE
void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
1612 static CYTHON_INLINE
void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1613 #if CYTHON_COMPILING_IN_CPYTHON
1614 #define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
1616 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
1619 #define __Pyx_PyErr_Clear() PyErr_Clear()
1620 #define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
1621 #define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb)
1622 #define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb)
1623 #define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb)
1624 #define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb)
1625 #define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb)
1626 #define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb)
1630 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);
1633 #if CYTHON_COMPILING_IN_CPYTHON
1634 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);
1636 #define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL)
1640 static void __Pyx_RaiseDoubleKeywordsError(
const char* func_name, PyObject* kw_name);
1643 static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
1644 PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\
1645 const char* function_name);
1648 #define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
1649 ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\
1650 __Pyx__ArgTypeTest(obj, type, name, exact))
1651 static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type,
const char *name,
int exact);
1654 #if !CYTHON_COMPILING_IN_PYPY
1655 static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2,
long intval,
int inplace);
1657 #define __Pyx_PyInt_SubtractObjC(op1, op2, intval, inplace)\
1658 (inplace ? PyNumber_InPlaceSubtract(op1, op2) : PyNumber_Subtract(op1, op2))
1662 static CYTHON_INLINE PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2,
long intval,
long inplace);
1665 static void __Pyx_WriteUnraisable(
const char *name,
int clineno,
1666 int lineno,
const char *filename,
1667 int full_traceback,
int nogil);
1670 #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
1671 static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key);
1672 #define __Pyx_PyObject_Dict_GetItem(obj, name)\
1673 (likely(PyDict_CheckExact(obj)) ?\
1674 __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name))
1676 #define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
1677 #define __Pyx_PyObject_Dict_GetItem(obj, name) PyObject_GetItem(obj, name)
1681 static CYTHON_INLINE
void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);
1684 static CYTHON_INLINE
void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);
1687 static CYTHON_INLINE
void __Pyx_RaiseNoneNotIterableError(
void);
1690 #if CYTHON_USE_EXC_INFO_STACK
1691 static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
1695 #if CYTHON_FAST_THREAD_STATE
1696 #define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
1697 static CYTHON_INLINE
void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1698 #define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
1699 static CYTHON_INLINE
void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
1701 #define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb)
1702 #define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb)
1706 #if CYTHON_FAST_THREAD_STATE
1707 #define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
1708 static CYTHON_INLINE
int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
1710 #define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err)
1714 #if CYTHON_FAST_THREAD_STATE
1715 #define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb)
1716 static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1718 static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
1725 static CYTHON_INLINE
int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2,
int equals);
1728 static CYTHON_INLINE
int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2,
int equals);
1731 #if PY_MAJOR_VERSION >= 3
1732 #define __Pyx_PyString_Equals __Pyx_PyUnicode_Equals
1734 #define __Pyx_PyString_Equals __Pyx_PyBytes_Equals
1738 static CYTHON_INLINE Py_ssize_t __Pyx_div_Py_ssize_t(Py_ssize_t, Py_ssize_t);
1741 #define UNARY_NEG_WOULD_OVERFLOW(x)\
1742 (((x) < 0) & ((unsigned long)(x) == 0-(unsigned long)(x)))
1744 static CYTHON_UNUSED
int __pyx_array_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags);
1745 static PyObject *__pyx_array_get_memview(
struct __pyx_array_obj *);
1747 static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *, PyObject *);
1750 #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1751 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1752 __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
1753 (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
1754 __Pyx_GetItemInt_Generic(o, to_py_func(i))))
1755 #define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1756 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1757 __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
1758 (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
1759 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
1760 int wraparound,
int boundscheck);
1761 #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
1762 (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
1763 __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
1764 (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
1765 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
1766 int wraparound,
int boundscheck);
1767 static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
1768 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
1769 int is_list,
int wraparound,
int boundscheck);
1772 #if CYTHON_USE_TYPE_SLOTS
1773 static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key);
1775 #define __Pyx_PyObject_GetItem(obj, key) PyObject_GetItem(obj, key)
1779 static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16(
const char *
s, Py_ssize_t size,
const char *errors) {
1781 return PyUnicode_DecodeUTF16(
s, size, errors, &byteorder);
1783 static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16LE(
const char *
s, Py_ssize_t size,
const char *errors) {
1785 return PyUnicode_DecodeUTF16(
s, size, errors, &byteorder);
1787 static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16BE(
const char *
s, Py_ssize_t size,
const char *errors) {
1789 return PyUnicode_DecodeUTF16(
s, size, errors, &byteorder);
1793 static CYTHON_INLINE PyObject* __Pyx_decode_c_string(
1794 const char* cstring, Py_ssize_t start, Py_ssize_t stop,
1795 const char* encoding,
const char* errors,
1796 PyObject* (*decode_func)(
const char *
s, Py_ssize_t size,
const char *errors));
1799 static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *);
1802 #if CYTHON_FAST_THREAD_STATE
1803 #define __Pyx_ExceptionSwap(type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb)
1804 static CYTHON_INLINE
void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
1806 static CYTHON_INLINE
void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb);
1810 static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list,
int level);
1813 #if CYTHON_COMPILING_IN_CPYTHON
1814 #define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
1815 static CYTHON_INLINE
int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
1816 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
1817 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
1819 #define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
1820 #define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
1821 #define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
1823 #define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
1825 static CYTHON_UNUSED
int __pyx_memoryview_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags);
1827 #if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
1828 static CYTHON_INLINE
int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
1829 PyListObject*
L = (PyListObject*) list;
1830 Py_ssize_t len = Py_SIZE(list);
1831 if (likely(
L->allocated > len)) {
1833 PyList_SET_ITEM(list, len, x);
1834 Py_SIZE(list) = len+1;
1837 return PyList_Append(list, x);
1840 #define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
1844 #if !CYTHON_COMPILING_IN_PYPY
1845 static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2,
long intval,
int inplace);
1847 #define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace)\
1848 (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2))
1852 static CYTHON_INLINE
int __Pyx_PyList_Extend(PyObject*
L, PyObject*
v) {
1853 #if CYTHON_COMPILING_IN_CPYTHON
1854 PyObject* none = _PyList_Extend((PyListObject*)
L,
v);
1855 if (unlikely(!none))
1860 return PyList_SetSlice(
L, PY_SSIZE_T_MAX, PY_SSIZE_T_MAX,
v);
1865 #if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
1866 static CYTHON_INLINE
int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
1867 PyListObject*
L = (PyListObject*) list;
1868 Py_ssize_t len = Py_SIZE(list);
1869 if (likely(
L->allocated > len) & likely(len > (
L->allocated >> 1))) {
1871 PyList_SET_ITEM(list, len, x);
1872 Py_SIZE(list) = len+1;
1875 return PyList_Append(list, x);
1878 #define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
1882 static CYTHON_INLINE
void __Pyx_RaiseUnboundLocalError(
const char *varname);
1885 static CYTHON_INLINE
long __Pyx_div_long(
long,
long);
1888 static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);
1891 static CYTHON_INLINE
int __Pyx_HasAttr(PyObject *, PyObject *);
1894 #if PY_MAJOR_VERSION < 3
1895 #define __Pyx_PyString_Join __Pyx_PyBytes_Join
1896 #define __Pyx_PyBaseString_Join(s, v) (PyUnicode_CheckExact(s) ? PyUnicode_Join(s, v) : __Pyx_PyBytes_Join(s, v))
1898 #define __Pyx_PyString_Join PyUnicode_Join
1899 #define __Pyx_PyBaseString_Join PyUnicode_Join
1901 #if CYTHON_COMPILING_IN_CPYTHON
1902 #if PY_MAJOR_VERSION < 3
1903 #define __Pyx_PyBytes_Join _PyString_Join
1905 #define __Pyx_PyBytes_Join _PyBytes_Join
1908 static CYTHON_INLINE PyObject* __Pyx_PyBytes_Join(PyObject* sep, PyObject* values);
1912 #if PY_MAJOR_VERSION >= 3
1913 #define __Pyx_PyObject_Unicode(obj)\
1914 (likely(PyUnicode_CheckExact(obj)) ? __Pyx_NewRef(obj) : PyObject_Str(obj))
1916 #define __Pyx_PyObject_Unicode(obj)\
1917 (likely(PyUnicode_CheckExact(obj)) ? __Pyx_NewRef(obj) : PyObject_Unicode(obj))
1921 #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
1922 static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name);
1924 #define __Pyx_PyObject_GenericGetAttrNoDict PyObject_GenericGetAttr
1928 #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
1929 static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name);
1931 #define __Pyx_PyObject_GenericGetAttr PyObject_GenericGetAttr
1935 static int __Pyx_setup_reduce(PyObject* type_obj);
1938 static int __Pyx_SetVtable(PyObject *dict,
void *vtable);
1941 #ifndef __PYX_HAVE_RT_ImportType_proto
1942 #define __PYX_HAVE_RT_ImportType_proto
1943 enum __Pyx_ImportType_CheckSize {
1944 __Pyx_ImportType_CheckSize_Error = 0,
1945 __Pyx_ImportType_CheckSize_Warn = 1,
1946 __Pyx_ImportType_CheckSize_Ignore = 2
1948 static PyTypeObject *__Pyx_ImportType(PyObject* module,
const char *module_name,
const char *class_name,
size_t size,
enum __Pyx_ImportType_CheckSize check_size);
1952 #ifdef CYTHON_CLINE_IN_TRACEBACK
1953 #define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
1955 static int __Pyx_CLineForTraceback(PyThreadState *tstate,
int c_line);
1960 PyCodeObject* code_object;
1962 } __Pyx_CodeObjectCacheEntry;
1963 struct __Pyx_CodeObjectCache {
1966 __Pyx_CodeObjectCacheEntry* entries;
1968 static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
1969 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries,
int count,
int code_line);
1970 static PyCodeObject *__pyx_find_code_object(
int code_line);
1971 static void __pyx_insert_code_object(
int code_line, PyCodeObject* code_object);
1974 static void __Pyx_AddTraceback(
const char *funcname,
int c_line,
1975 int py_line,
const char *filename);
1978 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(
int value);
1981 static CYTHON_INLINE PyObject *__pyx_memview_get_int(
const char *itemp);
1982 static CYTHON_INLINE
int __pyx_memview_set_int(
const char *itemp, PyObject *obj);
1985 static CYTHON_INLINE PyObject *__pyx_memview_get_double(
const char *itemp);
1986 static CYTHON_INLINE
int __pyx_memview_set_double(
const char *itemp, PyObject *obj);
1989 static int __Pyx_Print(PyObject*, PyObject *,
int);
1990 #if CYTHON_COMPILING_IN_PYPY || PY_MAJOR_VERSION >= 3
1991 static PyObject* __pyx_print = 0;
1992 static PyObject* __pyx_print_kwargs = 0;
1998 #define __Pyx_CREAL(z) ((z).real())
1999 #define __Pyx_CIMAG(z) ((z).imag())
2001 #define __Pyx_CREAL(z) (__real__(z))
2002 #define __Pyx_CIMAG(z) (__imag__(z))
2005 #define __Pyx_CREAL(z) ((z).real)
2006 #define __Pyx_CIMAG(z) ((z).imag)
2008 #if defined(__cplusplus) && CYTHON_CCOMPLEX\
2009 && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 )) || __cplusplus >= 201103)
2010 #define __Pyx_SET_CREAL(z,x) ((z).real(x))
2011 #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
2013 #define __Pyx_SET_CREAL(z,x) __Pyx_CREAL(z) = (x)
2014 #define __Pyx_SET_CIMAG(z,y) __Pyx_CIMAG(z) = (y)
2019 #define __Pyx_c_eq_float(a, b) ((a)==(b))
2020 #define __Pyx_c_sum_float(a, b) ((a)+(b))
2021 #define __Pyx_c_diff_float(a, b) ((a)-(b))
2022 #define __Pyx_c_prod_float(a, b) ((a)*(b))
2023 #define __Pyx_c_quot_float(a, b) ((a)/(b))
2024 #define __Pyx_c_neg_float(a) (-(a))
2026 #define __Pyx_c_is_zero_float(z) ((z)==(float)0)
2027 #define __Pyx_c_conj_float(z) (::std::conj(z))
2029 #define __Pyx_c_abs_float(z) (::std::abs(z))
2030 #define __Pyx_c_pow_float(a, b) (::std::pow(a, b))
2033 #define __Pyx_c_is_zero_float(z) ((z)==0)
2034 #define __Pyx_c_conj_float(z) (conjf(z))
2036 #define __Pyx_c_abs_float(z) (cabsf(z))
2037 #define __Pyx_c_pow_float(a, b) (cpowf(a, b))
2041 static CYTHON_INLINE
int __Pyx_c_eq_float(__pyx_t_float_complex, __pyx_t_float_complex);
2042 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex, __pyx_t_float_complex);
2043 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex, __pyx_t_float_complex);
2044 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex, __pyx_t_float_complex);
2045 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex, __pyx_t_float_complex);
2046 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex);
2047 static CYTHON_INLINE
int __Pyx_c_is_zero_float(__pyx_t_float_complex);
2048 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex);
2050 static CYTHON_INLINE
float __Pyx_c_abs_float(__pyx_t_float_complex);
2051 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex, __pyx_t_float_complex);
2057 #define __Pyx_c_eq_double(a, b) ((a)==(b))
2058 #define __Pyx_c_sum_double(a, b) ((a)+(b))
2059 #define __Pyx_c_diff_double(a, b) ((a)-(b))
2060 #define __Pyx_c_prod_double(a, b) ((a)*(b))
2061 #define __Pyx_c_quot_double(a, b) ((a)/(b))
2062 #define __Pyx_c_neg_double(a) (-(a))
2064 #define __Pyx_c_is_zero_double(z) ((z)==(double)0)
2065 #define __Pyx_c_conj_double(z) (::std::conj(z))
2067 #define __Pyx_c_abs_double(z) (::std::abs(z))
2068 #define __Pyx_c_pow_double(a, b) (::std::pow(a, b))
2071 #define __Pyx_c_is_zero_double(z) ((z)==0)
2072 #define __Pyx_c_conj_double(z) (conj(z))
2074 #define __Pyx_c_abs_double(z) (cabs(z))
2075 #define __Pyx_c_pow_double(a, b) (cpow(a, b))
2079 static CYTHON_INLINE
int __Pyx_c_eq_double(__pyx_t_double_complex, __pyx_t_double_complex);
2080 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex, __pyx_t_double_complex);
2081 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex, __pyx_t_double_complex);
2082 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex, __pyx_t_double_complex);
2083 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex, __pyx_t_double_complex);
2084 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex);
2085 static CYTHON_INLINE
int __Pyx_c_is_zero_double(__pyx_t_double_complex);
2086 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex);
2088 static CYTHON_INLINE
double __Pyx_c_abs_double(__pyx_t_double_complex);
2089 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex, __pyx_t_double_complex);
2094 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__NPY_TYPES(
enum NPY_TYPES value);
2096 #if PY_MAJOR_VERSION < 3
2097 static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view,
int flags);
2098 static void __Pyx_ReleaseBuffer(Py_buffer *view);
2100 #define __Pyx_GetBuffer PyObject_GetBuffer
2101 #define __Pyx_ReleaseBuffer PyBuffer_Release
2107 Py_ssize_t shape, strides, suboffsets;
2108 } __Pyx_Buf_DimInfo;
2114 __Pyx_Buffer *rcbuffer;
2116 __Pyx_Buf_DimInfo diminfo[8];
2117 } __Pyx_LocalBuf_ND;
2120 static int __pyx_memviewslice_is_contig(
const __Pyx_memviewslice mvs,
char order,
int ndim);
2123 static int __pyx_slices_overlap(__Pyx_memviewslice *slice1,
2124 __Pyx_memviewslice *slice2,
2125 int ndim,
size_t itemsize);
2128 static CYTHON_INLINE PyObject *__pyx_capsule_create(
void *p,
const char *sig);
2131 static CYTHON_INLINE
int __Pyx_PyInt_As_int(PyObject *);
2134 struct __pyx_typeinfo_string {
2137 static struct __pyx_typeinfo_string __Pyx_TypeInfoToFormat(__Pyx_TypeInfo *type);
2140 static int __Pyx_PrintOne(PyObject* stream, PyObject *o);
2143 static __Pyx_memviewslice
2144 __pyx_memoryview_copy_new_contig(
const __Pyx_memviewslice *from_mvs,
2145 const char *mode,
int ndim,
2146 size_t sizeof_dtype,
int contig_flag,
2147 int dtype_is_object);
2150 #define __Pyx_BUF_MAX_NDIMS %(BUF_MAX_NDIMS)d
2151 #define __Pyx_MEMVIEW_DIRECT 1
2152 #define __Pyx_MEMVIEW_PTR 2
2153 #define __Pyx_MEMVIEW_FULL 4
2154 #define __Pyx_MEMVIEW_CONTIG 8
2155 #define __Pyx_MEMVIEW_STRIDED 16
2156 #define __Pyx_MEMVIEW_FOLLOW 32
2157 #define __Pyx_IS_C_CONTIG 1
2158 #define __Pyx_IS_F_CONTIG 2
2159 static int __Pyx_init_memviewslice(
2160 struct __pyx_memoryview_obj *memview,
2162 __Pyx_memviewslice *memviewslice,
2163 int memview_is_new_reference);
2164 static CYTHON_INLINE
int __pyx_add_acquisition_count_locked(
2165 __pyx_atomic_int *acquisition_count, PyThread_type_lock lock);
2166 static CYTHON_INLINE
int __pyx_sub_acquisition_count_locked(
2167 __pyx_atomic_int *acquisition_count, PyThread_type_lock lock);
2168 #define __pyx_get_slice_count_pointer(memview) (memview->acquisition_count_aligned_p)
2169 #define __pyx_get_slice_count(memview) (*__pyx_get_slice_count_pointer(memview))
2170 #define __PYX_INC_MEMVIEW(slice, have_gil) __Pyx_INC_MEMVIEW(slice, have_gil, __LINE__)
2171 #define __PYX_XDEC_MEMVIEW(slice, have_gil) __Pyx_XDEC_MEMVIEW(slice, have_gil, __LINE__)
2172 static CYTHON_INLINE
void __Pyx_INC_MEMVIEW(__Pyx_memviewslice *,
int,
int);
2173 static CYTHON_INLINE
void __Pyx_XDEC_MEMVIEW(__Pyx_memviewslice *,
int,
int);
2176 static CYTHON_INLINE
long __Pyx_PyInt_As_long(PyObject *);
2179 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(
long value);
2182 static CYTHON_INLINE
char __Pyx_PyInt_As_char(PyObject *);
2185 static int __Pyx_check_binary_version(
void);
2188 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);
2190 static PyObject *__pyx_array_get_memview(
struct __pyx_array_obj *__pyx_v_self);
2191 static char *__pyx_memoryview_get_item_pointer(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index);
2192 static PyObject *__pyx_memoryview_is_slice(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj);
2193 static PyObject *__pyx_memoryview_setitem_slice_assignment(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src);
2194 static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(
struct __pyx_memoryview_obj *__pyx_v_self,
struct __pyx_memoryview_obj *__pyx_v_dst, PyObject *__pyx_v_value);
2195 static PyObject *__pyx_memoryview_setitem_indexed(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value);
2196 static PyObject *__pyx_memoryview_convert_item_to_object(
struct __pyx_memoryview_obj *__pyx_v_self,
char *__pyx_v_itemp);
2197 static PyObject *__pyx_memoryview_assign_item_from_object(
struct __pyx_memoryview_obj *__pyx_v_self,
char *__pyx_v_itemp, PyObject *__pyx_v_value);
2198 static PyObject *__pyx_memoryviewslice_convert_item_to_object(
struct __pyx_memoryviewslice_obj *__pyx_v_self,
char *__pyx_v_itemp);
2199 static PyObject *__pyx_memoryviewslice_assign_item_from_object(
struct __pyx_memoryviewslice_obj *__pyx_v_self,
char *__pyx_v_itemp, PyObject *__pyx_v_value);
2210 static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0;
2223 static PyTypeObject *__pyx_ptype_5numpy_dtype = 0;
2224 static PyTypeObject *__pyx_ptype_5numpy_flatiter = 0;
2225 static PyTypeObject *__pyx_ptype_5numpy_broadcast = 0;
2226 static PyTypeObject *__pyx_ptype_5numpy_ndarray = 0;
2227 static PyTypeObject *__pyx_ptype_5numpy_ufunc = 0;
2228 static CYTHON_INLINE
char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *,
char *,
char *,
int *);
2235 static struct __pyx_array_obj *__pyx_array_new(PyObject *, Py_ssize_t,
char *,
char *,
char *);
2240 static PyTypeObject *__pyx_ptype_10cmeshTools_CMesh = 0;
2241 static PyTypeObject *__pyx_ptype_10cmeshTools_CMultilevelMesh = 0;
2242 static PyTypeObject *__pyx_array_type = 0;
2243 static PyTypeObject *__pyx_MemviewEnum_type = 0;
2244 static PyTypeObject *__pyx_memoryview_type = 0;
2245 static PyTypeObject *__pyx_memoryviewslice_type = 0;
2246 static PyObject *
generic = 0;
2247 static PyObject *strided = 0;
2248 static PyObject *indirect = 0;
2249 static PyObject *contiguous = 0;
2250 static PyObject *indirect_contiguous = 0;
2251 static int __pyx_memoryview_thread_locks_used;
2252 static PyThread_type_lock __pyx_memoryview_thread_locks[8];
2253 static struct __pyx_obj_10cmeshTools_CMesh *__pyx_f_10cmeshTools_CMesh_FromMesh(
struct Mesh);
2254 static void __pyx_f_10cmeshTools_generateTetrahedralMeshFromRectangularGrid(
int,
int,
int,
double,
double,
double,
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2255 static void __pyx_f_10cmeshTools_cmeshToolsComputeGeometricInfo_tetrahedron(
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2256 static void __pyx_f_10cmeshTools_generateFromTriangleFiles(
struct __pyx_obj_10cmeshTools_CMesh *, PyObject *,
int,
int __pyx_skip_dispatch);
2257 static void __pyx_f_10cmeshTools_writeTriangleFiles(
struct __pyx_obj_10cmeshTools_CMesh *, PyObject *,
int,
int __pyx_skip_dispatch);
2258 static void __pyx_f_10cmeshTools_generateFromTetgenFiles(
struct __pyx_obj_10cmeshTools_CMesh *, PyObject *,
int,
int __pyx_skip_dispatch);
2259 static void __pyx_f_10cmeshTools_generateFromTetgenFilesParallel(
struct __pyx_obj_10cmeshTools_CMesh *, PyObject *,
int,
int __pyx_skip_dispatch);
2260 static void __pyx_f_10cmeshTools_writeTetgenFiles(
struct __pyx_obj_10cmeshTools_CMesh *, PyObject *,
int,
int __pyx_skip_dispatch);
2261 static void __pyx_f_10cmeshTools_write3dmFiles(
struct __pyx_obj_10cmeshTools_CMesh *, PyObject *,
int,
int __pyx_skip_dispatch);
2262 static void __pyx_f_10cmeshTools_write2dmFiles(
struct __pyx_obj_10cmeshTools_CMesh *, PyObject *,
int,
int __pyx_skip_dispatch);
2263 static void __pyx_f_10cmeshTools_generateFromHexFile(
struct __pyx_obj_10cmeshTools_CMesh *, PyObject *,
int,
int __pyx_skip_dispatch);
2264 static void __pyx_f_10cmeshTools_generateFrom3DMFile(
struct __pyx_obj_10cmeshTools_CMesh *, PyObject *,
int,
int __pyx_skip_dispatch);
2265 static void __pyx_f_10cmeshTools_generateFrom2DMFile(
struct __pyx_obj_10cmeshTools_CMesh *, PyObject *,
int,
int __pyx_skip_dispatch);
2266 static void __pyx_f_10cmeshTools_computeGeometricInfo_tetrahedron(
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2267 static void __pyx_f_10cmeshTools_allocateGeometricInfo_tetrahedron(
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2268 static void __pyx_f_10cmeshTools_allocateNodeAndElementNodeDataStructures(
struct __pyx_obj_10cmeshTools_CMesh *,
int,
int,
int,
int __pyx_skip_dispatch);
2269 static void __pyx_f_10cmeshTools_constructElementBoundaryElementsArray(
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2270 static void __pyx_f_10cmeshTools_generateTriangularMeshFromRectangularGrid(
int,
int,
double,
double,
struct __pyx_obj_10cmeshTools_CMesh *,
int,
int __pyx_skip_dispatch);
2271 static void __pyx_f_10cmeshTools_generateHexahedralMeshFromRectangularGrid(
int,
int,
int,
int,
int,
int,
double,
double,
double,
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2272 static void __pyx_f_10cmeshTools_generateQuadrilateralMeshFromRectangularGrid(
int,
int,
int,
int,
double,
double,
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2273 static void __pyx_f_10cmeshTools_computeGeometricInfo_triangle(
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2274 static void __pyx_f_10cmeshTools_allocateGeometricInfo_triangle(
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2275 static void __pyx_f_10cmeshTools_generateEdgeMeshFromRectangularGrid(
int,
double,
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2276 static void __pyx_f_10cmeshTools_computeGeometricInfo_edge(
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2277 static void __pyx_f_10cmeshTools_allocateGeometricInfo_edge(
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2278 static void __pyx_f_10cmeshTools_computeGeometricInfo_hexahedron(
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2279 static void __pyx_f_10cmeshTools_computeGeometricInfo_quadrilateral(
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2280 static void __pyx_f_10cmeshTools_allocateGeometricInfo_hexahedron(
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2281 static void __pyx_f_10cmeshTools_allocateGeometricInfo_quadrilateral(
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2282 static void __pyx_f_10cmeshTools_computeGeometricInfo_NURBS(
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2283 static void __pyx_f_10cmeshTools_allocateGeometricInfo_NURBS(
struct __pyx_obj_10cmeshTools_CMesh *,
int __pyx_skip_dispatch);
2284 static struct __pyx_array_obj *__pyx_array_new(PyObject *, Py_ssize_t,
char *,
char *,
char *);
2285 static void *__pyx_align_pointer(
void *,
size_t);
2286 static PyObject *__pyx_memoryview_new(PyObject *,
int,
int, __Pyx_TypeInfo *);
2287 static CYTHON_INLINE
int __pyx_memoryview_check(PyObject *);
2288 static PyObject *_unellipsify(PyObject *,
int);
2289 static PyObject *assert_direct_dimensions(Py_ssize_t *,
int);
2290 static struct __pyx_memoryview_obj *__pyx_memview_slice(
struct __pyx_memoryview_obj *, PyObject *);
2291 static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *, Py_ssize_t, Py_ssize_t, Py_ssize_t,
int,
int,
int *, Py_ssize_t, Py_ssize_t, Py_ssize_t,
int,
int,
int,
int);
2292 static char *__pyx_pybuffer_index(Py_buffer *,
char *, Py_ssize_t, Py_ssize_t);
2293 static int __pyx_memslice_transpose(__Pyx_memviewslice *);
2294 static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice,
int, PyObject *(*)(
char *),
int (*)(
char *, PyObject *),
int);
2295 static __Pyx_memviewslice *__pyx_memoryview_get_slice_from_memoryview(
struct __pyx_memoryview_obj *, __Pyx_memviewslice *);
2296 static void __pyx_memoryview_slice_copy(
struct __pyx_memoryview_obj *, __Pyx_memviewslice *);
2297 static PyObject *__pyx_memoryview_copy_object(
struct __pyx_memoryview_obj *);
2298 static PyObject *__pyx_memoryview_copy_object_from_slice(
struct __pyx_memoryview_obj *, __Pyx_memviewslice *);
2299 static Py_ssize_t abs_py_ssize_t(Py_ssize_t);
2300 static char __pyx_get_best_slice_order(__Pyx_memviewslice *,
int);
2301 static void _copy_strided_to_strided(
char *, Py_ssize_t *,
char *, Py_ssize_t *, Py_ssize_t *, Py_ssize_t *,
int,
size_t);
2302 static void copy_strided_to_strided(__Pyx_memviewslice *, __Pyx_memviewslice *,
int,
size_t);
2303 static Py_ssize_t __pyx_memoryview_slice_get_size(__Pyx_memviewslice *,
int);
2304 static Py_ssize_t __pyx_fill_contig_strides_array(Py_ssize_t *, Py_ssize_t *, Py_ssize_t,
int,
char);
2305 static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *, __Pyx_memviewslice *,
char,
int);
2306 static int __pyx_memoryview_err_extents(
int, Py_ssize_t, Py_ssize_t);
2307 static int __pyx_memoryview_err_dim(PyObject *,
char *,
int);
2308 static int __pyx_memoryview_err(PyObject *,
char *);
2309 static int __pyx_memoryview_copy_contents(__Pyx_memviewslice, __Pyx_memviewslice,
int,
int,
int);
2310 static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *,
int,
int);
2311 static void __pyx_memoryview_refcount_copying(__Pyx_memviewslice *,
int,
int,
int);
2312 static void __pyx_memoryview_refcount_objects_in_slice_with_gil(
char *, Py_ssize_t *, Py_ssize_t *,
int,
int);
2313 static void __pyx_memoryview_refcount_objects_in_slice(
char *, Py_ssize_t *, Py_ssize_t *,
int,
int);
2314 static void __pyx_memoryview_slice_assign_scalar(__Pyx_memviewslice *,
int,
size_t,
void *,
int);
2315 static void __pyx_memoryview__slice_assign_scalar(
char *, Py_ssize_t *, Py_ssize_t *,
int,
size_t,
void *);
2316 static PyObject *__pyx_unpickle_Enum__set_state(
struct __pyx_MemviewEnum_obj *, PyObject *);
2317 static PyObject *__pyx_format_from_typeinfo(__Pyx_TypeInfo *);
2318 static __Pyx_TypeInfo __Pyx_TypeInfo_int = {
"int", NULL,
sizeof(int), { 0 }, 0, IS_UNSIGNED(
int) ?
'U' :
'I', IS_UNSIGNED(
int), 0 };
2319 static __Pyx_TypeInfo __Pyx_TypeInfo_double = {
"double", NULL,
sizeof(double), { 0 }, 0,
'R', 0, 0 };
2320 #define __Pyx_MODULE_NAME "cmeshTools"
2321 extern int __pyx_module_is_main_cmeshTools;
2322 int __pyx_module_is_main_cmeshTools = 0;
2325 static PyObject *__pyx_builtin_TypeError;
2326 static PyObject *__pyx_builtin_range;
2327 static PyObject *__pyx_builtin_ValueError;
2328 static PyObject *__pyx_builtin_RuntimeError;
2329 static PyObject *__pyx_builtin_ImportError;
2330 static PyObject *__pyx_builtin_MemoryError;
2331 static PyObject *__pyx_builtin_enumerate;
2332 static PyObject *__pyx_builtin_Ellipsis;
2333 static PyObject *__pyx_builtin_id;
2334 static PyObject *__pyx_builtin_IndexError;
2335 static const char __pyx_k_O[] =
"O";
2336 static const char __pyx_k_T[] =
"T{";
2337 static const char __pyx_k_c[] =
"c";
2338 static const char __pyx_k_h[] =
"h";
2339 static const char __pyx_k_s[] =
"(%s)";
2340 static const char __pyx_k_Lx[] =
"Lx";
2341 static const char __pyx_k_Ly[] =
"Ly";
2342 static const char __pyx_k_Lz[] =
"Lz";
2343 static const char __pyx_k_id[] =
"id";
2344 static const char __pyx_k_np[] =
"np";
2345 static const char __pyx_k_nx[] =
"nx";
2346 static const char __pyx_k_ny[] =
"ny";
2347 static const char __pyx_k_nz[] =
"nz";
2348 static const char __pyx_k_px[] =
"px";
2349 static const char __pyx_k_py[] =
"py";
2350 static const char __pyx_k_pz[] =
"pz";
2351 static const char __pyx_k_MPI[] =
"MPI";
2352 static const char __pyx_k__31[] =
"^";
2353 static const char __pyx_k__32[] =
"";
2354 static const char __pyx_k__33[] =
":";
2355 static const char __pyx_k__34[] =
"}";
2356 static const char __pyx_k__35[] =
",";
2357 static const char __pyx_k_end[] =
"end";
2358 static const char __pyx_k_new[] =
"__new__";
2359 static const char __pyx_k_obj[] =
"obj";
2360 static const char __pyx_k_Comm[] =
"Comm";
2361 static const char __pyx_k_base[] =
"base";
2362 static const char __pyx_k_dict[] =
"__dict__";
2363 static const char __pyx_k_file[] =
"file";
2364 static const char __pyx_k_hMin[] =
"hMin";
2365 static const char __pyx_k_join[] =
"join";
2366 static const char __pyx_k_main[] =
"__main__";
2367 static const char __pyx_k_mode[] =
"mode";
2368 static const char __pyx_k_name[] =
"name";
2369 static const char __pyx_k_ndim[] =
"ndim";
2370 static const char __pyx_k_pack[] =
"pack";
2371 static const char __pyx_k_size[] =
"size";
2372 static const char __pyx_k_step[] =
"step";
2373 static const char __pyx_k_stop[] =
"stop";
2374 static const char __pyx_k_test[] =
"__test__";
2375 static const char __pyx_k_ASCII[] =
"ASCII";
2376 static const char __pyx_k_CMesh[] =
"CMesh";
2377 static const char __pyx_k_class[] =
"__class__";
2378 static const char __pyx_k_cmesh[] =
"cmesh";
2379 static const char __pyx_k_dtype[] =
"dtype";
2380 static const char __pyx_k_empty[] =
"empty";
2381 static const char __pyx_k_error[] =
"error";
2382 static const char __pyx_k_flags[] =
"flags";
2383 static const char __pyx_k_int32[] =
"int32";
2384 static const char __pyx_k_numpy[] =
"numpy";
2385 static const char __pyx_k_print[] =
"print";
2386 static const char __pyx_k_range[] =
"range";
2387 static const char __pyx_k_shape[] =
"shape";
2388 static const char __pyx_k_start[] =
"start";
2389 static const char __pyx_k_zeros[] =
"zeros";
2390 static const char __pyx_k_U_KNOT[] =
"U_KNOT";
2391 static const char __pyx_k_V_KNOT[] =
"V_KNOT";
2392 static const char __pyx_k_W_KNOT[] =
"W_KNOT";
2393 static const char __pyx_k_encode[] =
"encode";
2394 static const char __pyx_k_failed[] =
"failed";
2395 static const char __pyx_k_format[] =
"format";
2396 static const char __pyx_k_import[] =
"__import__";
2397 static const char __pyx_k_mpi4py[] =
"mpi4py";
2398 static const char __pyx_k_nSpace[] =
"nSpace";
2399 static const char __pyx_k_name_2[] =
"__name__";
2400 static const char __pyx_k_pickle[] =
"pickle";
2401 static const char __pyx_k_reduce[] =
"__reduce__";
2402 static const char __pyx_k_struct[] =
"struct";
2403 static const char __pyx_k_unpack[] =
"unpack";
2404 static const char __pyx_k_update[] =
"update";
2405 static const char __pyx_k_volume[] =
"volume";
2406 static const char __pyx_k_asarray[] =
"asarray";
2407 static const char __pyx_k_fortran[] =
"fortran";
2408 static const char __pyx_k_memview[] =
"memview";
2409 static const char __pyx_k_nLevels[] =
"nLevels";
2410 static const char __pyx_k_proteus[] =
"proteus";
2411 static const char __pyx_k_weights[] =
"weights";
2412 static const char __pyx_k_Ellipsis[] =
"Ellipsis";
2413 static const char __pyx_k_filebase[] =
"filebase";
2414 static const char __pyx_k_getstate[] =
"__getstate__";
2415 static const char __pyx_k_itemsize[] =
"itemsize";
2416 static const char __pyx_k_pyx_type[] =
"__pyx_type";
2417 static const char __pyx_k_setstate[] =
"__setstate__";
2418 static const char __pyx_k_sigmaMax[] =
"sigmaMax";
2419 static const char __pyx_k_TypeError[] =
"TypeError";
2420 static const char __pyx_k_cmeshList[] =
"cmeshList";
2421 static const char __pyx_k_enumerate[] =
"enumerate";
2422 static const char __pyx_k_nodeArray[] =
"nodeArray";
2423 static const char __pyx_k_pyx_state[] =
"__pyx_state";
2424 static const char __pyx_k_reduce_ex[] =
"__reduce_ex__";
2425 static const char __pyx_k_IndexError[] =
"IndexError";
2426 static const char __pyx_k_ValueError[] =
"ValueError";
2427 static const char __pyx_k_cmeshTools[] =
"cmeshTools";
2428 static const char __pyx_k_elementIJK[] =
"elementIJK";
2429 static const char __pyx_k_pyx_result[] =
"__pyx_result";
2430 static const char __pyx_k_pyx_vtable[] =
"__pyx_vtable__";
2431 static const char __pyx_k_ImportError[] =
"ImportError";
2432 static const char __pyx_k_MemoryError[] =
"MemoryError";
2433 static const char __pyx_k_PickleError[] =
"PickleError";
2434 static const char __pyx_k_finestLevel[] =
"finestLevel";
2435 static const char __pyx_k_RuntimeError[] =
"RuntimeError";
2436 static const char __pyx_k_pyx_checksum[] =
"__pyx_checksum";
2437 static const char __pyx_k_stringsource[] =
"stringsource";
2438 static const char __pyx_k_triangleFlag[] =
"triangleFlag";
2439 static const char __pyx_k_nEdges_global[] =
"nEdges_global";
2440 static const char __pyx_k_nNodes_global[] =
"nNodes_global";
2441 static const char __pyx_k_nodeStarArray[] =
"nodeStarArray";
2442 static const char __pyx_k_pyx_getbuffer[] =
"__pyx_getbuffer";
2443 static const char __pyx_k_reduce_cython[] =
"__reduce_cython__";
2444 static const char __pyx_k_wrong_nLevels[] =
"wrong nLevels";
2445 static const char __pyx_k_edgeNodesArray[] =
"edgeNodesArray";
2446 static const char __pyx_k_nNodes_element[] =
"nNodes_element";
2447 static const char __pyx_k_refineTypeFlag[] =
"refineTypeFlag";
2448 static const char __pyx_k_CMultilevelMesh[] =
"CMultilevelMesh";
2449 static const char __pyx_k_View_MemoryView[] =
"View.MemoryView";
2450 static const char __pyx_k_allocate_buffer[] =
"allocate_buffer";
2451 static const char __pyx_k_cmultilevelMesh[] =
"cmultilevelMesh";
2452 static const char __pyx_k_dtype_is_object[] =
"dtype_is_object";
2453 static const char __pyx_k_elementTagArray[] =
"elementTagArray";
2454 static const char __pyx_k_nodeStarOffsets[] =
"nodeStarOffsets";
2455 static const char __pyx_k_pyx_PickleError[] =
"__pyx_PickleError";
2456 static const char __pyx_k_setstate_cython[] =
"__setstate_cython__";
2457 static const char __pyx_k_nElements_global[] =
"nElements_global";
2458 static const char __pyx_k_nodeSupportArray[] =
"nodeSupportArray";
2459 static const char __pyx_k_elementNodesArray[] =
"elementNodesArray";
2460 static const char __pyx_k_nodeElementsArray[] =
"nodeElementsArray";
2461 static const char __pyx_k_nodeMaterialTypes[] =
"nodeMaterialTypes";
2462 static const char __pyx_k_pyx_unpickle_Enum[] =
"__pyx_unpickle_Enum";
2463 static const char __pyx_k_cline_in_traceback[] =
"cline_in_traceback";
2464 static const char __pyx_k_max_nElements_node[] =
"max_nElements_node";
2465 static const char __pyx_k_nodeDiametersArray[] =
"nodeDiametersArray";
2466 static const char __pyx_k_nodeElementOffsets[] =
"nodeElementOffsets";
2467 static const char __pyx_k_setNewestNodeBases[] =
"setNewestNodeBases";
2468 static const char __pyx_k_strided_and_direct[] =
"<strided and direct>";
2469 static const char __pyx_k_elementMaterialTypes[] =
"elementMaterialTypes";
2470 static const char __pyx_k_strided_and_indirect[] =
"<strided and indirect>";
2471 static const char __pyx_k_contiguous_and_direct[] =
"<contiguous and direct>";
2472 static const char __pyx_k_elementDiametersArray[] =
"elementDiametersArray";
2473 static const char __pyx_k_elementNeighborsArray[] =
"elementNeighborsArray";
2474 static const char __pyx_k_MemoryView_of_r_object[] =
"<MemoryView of %r object>";
2475 static const char __pyx_k_elementBoundariesArray[] =
"elementBoundariesArray";
2476 static const char __pyx_k_nNodes_elementBoundary[] =
"nNodes_elementBoundary";
2477 static const char __pyx_k_proteus_cmeshTools_pyx[] =
"proteus/cmeshTools.pyx";
2478 static const char __pyx_k_MemoryView_of_r_at_0x_x[] =
"<MemoryView of %r at 0x%x>";
2479 static const char __pyx_k_contiguous_and_indirect[] =
"<contiguous and indirect>";
2480 static const char __pyx_k_elementBarycentersArray[] =
"elementBarycentersArray";
2481 static const char __pyx_k_elementParentsArrayList[] =
"elementParentsArrayList";
2482 static const char __pyx_k_max_nNodeNeighbors_node[] =
"max_nNodeNeighbors_node";
2483 static const char __pyx_k_Cannot_index_with_type_s[] =
"Cannot index with type '%s'";
2484 static const char __pyx_k_buildPythonMeshInterface[] =
"buildPythonMeshInterface";
2485 static const char __pyx_k_elementChildrenArrayList[] =
"elementChildrenArrayList";
2486 static const char __pyx_k_Invalid_shape_in_axis_d_d[] =
"Invalid shape in axis %d: %d.";
2487 static const char __pyx_k_elementBoundaryNodesArray[] =
"elementBoundaryNodesArray";
2488 static const char __pyx_k_nElementBoundaries_global[] =
"nElementBoundaries_global";
2489 static const char __pyx_k_elementChildrenOffsetsList[] =
"elementChildrenOffsetsList";
2490 static const char __pyx_k_elementInnerDiametersArray[] =
"elementInnerDiametersArray";
2491 static const char __pyx_k_nElementBoundaries_element[] =
"nElementBoundaries_element";
2492 static const char __pyx_k_itemsize_0_for_cython_array[] =
"itemsize <= 0 for cython.array";
2493 static const char __pyx_k_locallyRefineMultilevelMesh[] =
"locallyRefineMultilevelMesh";
2494 static const char __pyx_k_ndarray_is_not_C_contiguous[] =
"ndarray is not C contiguous";
2495 static const char __pyx_k_elementBoundaryElementsArray[] =
"elementBoundaryElementsArray";
2496 static const char __pyx_k_elementBoundaryMaterialTypes[] =
"elementBoundaryMaterialTypes";
2497 static const char __pyx_k_elementBoundaryDiametersArray[] =
"elementBoundaryDiametersArray";
2498 static const char __pyx_k_unable_to_allocate_array_data[] =
"unable to allocate array data.";
2499 static const char __pyx_k_exteriorElementBoundariesArray[] =
"exteriorElementBoundariesArray";
2500 static const char __pyx_k_interiorElementBoundariesArray[] =
"interiorElementBoundariesArray";
2501 static const char __pyx_k_strided_and_direct_or_indirect[] =
"<strided and direct or indirect>";
2502 static const char __pyx_k_elementBoundaryBarycentersArray[] =
"elementBoundaryBarycentersArray";
2503 static const char __pyx_k_numpy_core_multiarray_failed_to[] =
"numpy.core.multiarray failed to import";
2504 static const char __pyx_k_unknown_dtype_code_in_numpy_pxd[] =
"unknown dtype code in numpy.pxd (%d)";
2505 static const char __pyx_k_Buffer_view_does_not_expose_stri[] =
"Buffer view does not expose strides";
2506 static const char __pyx_k_Can_only_create_a_buffer_that_is[] =
"Can only create a buffer that is contiguous in memory.";
2507 static const char __pyx_k_Cannot_assign_to_read_only_memor[] =
"Cannot assign to read-only memoryview";
2508 static const char __pyx_k_Cannot_create_writable_memory_vi[] =
"Cannot create writable memory view from read-only memoryview";
2509 static const char __pyx_k_Empty_shape_tuple_for_cython_arr[] =
"Empty shape tuple for cython.array";
2510 static const char __pyx_k_Format_string_allocated_too_shor[] =
"Format string allocated too short, see comment in numpy.pxd";
2511 static const char __pyx_k_Incompatible_checksums_s_vs_0xb0[] =
"Incompatible checksums (%s vs 0xb068931 = (name))";
2512 static const char __pyx_k_Indirect_dimensions_not_supporte[] =
"Indirect dimensions not supported";
2513 static const char __pyx_k_Invalid_mode_expected_c_or_fortr[] =
"Invalid mode, expected 'c' or 'fortran', got %s";
2514 static const char __pyx_k_Non_native_byte_order_not_suppor[] =
"Non-native byte order not supported";
2515 static const char __pyx_k_Out_of_bounds_on_buffer_access_a[] =
"Out of bounds on buffer access (axis %d)";
2516 static const char __pyx_k_Unable_to_convert_item_to_object[] =
"Unable to convert item to object";
2517 static const char __pyx_k_buildPythonMeshInterfaceNoArrays[] =
"buildPythonMeshInterfaceNoArrays";
2518 static const char __pyx_k_buildPythonMultilevelMeshInterfa[] =
"buildPythonMultilevelMeshInterface";
2519 static const char __pyx_k_elementBoundaryLocalElementBound[] =
"elementBoundaryLocalElementBoundariesArray";
2520 static const char __pyx_k_got_differing_extents_in_dimensi[] =
"got differing extents in dimension %d (got %d and %d)";
2521 static const char __pyx_k_locallyRefine_nSpace_0_d_not_imp[] =
"locallyRefine nSpace= {0:d} not implemented! Returning.";
2522 static const char __pyx_k_nExteriorElementBoundaries_globa[] =
"nExteriorElementBoundaries_global";
2523 static const char __pyx_k_nInteriorElementBoundaries_globa[] =
"nInteriorElementBoundaries_global";
2524 static const char __pyx_k_ndarray_is_not_Fortran_contiguou[] =
"ndarray is not Fortran contiguous";
2525 static const char __pyx_k_no_default___reduce___due_to_non[] =
"no default __reduce__ due to non-trivial __cinit__";
2526 static const char __pyx_k_numpy_core_umath_failed_to_impor[] =
"numpy.core.umath failed to import";
2527 static const char __pyx_k_self_mesh_cannot_be_converted_to[] =
"self.mesh cannot be converted to a Python object for pickling";
2528 static const char __pyx_k_self_multilevelMesh_cannot_be_co[] =
"self.multilevelMesh cannot be converted to a Python object for pickling";
2529 static const char __pyx_k_setNewestNodeBases_0_d_not_imple[] =
"setNewestNodeBases= {0:d} not implemented! Returning";
2530 static const char __pyx_k_unable_to_allocate_shape_and_str[] =
"unable to allocate shape and strides.";
2531 static const char __pyx_k_Format_string_allocated_too_shor_2[] =
"Format string allocated too short.";
2532 static PyObject *__pyx_n_s_ASCII;
2533 static PyObject *__pyx_kp_s_Buffer_view_does_not_expose_stri;
2534 static PyObject *__pyx_n_s_CMesh;
2535 static PyObject *__pyx_n_s_CMultilevelMesh;
2536 static PyObject *__pyx_kp_s_Can_only_create_a_buffer_that_is;
2537 static PyObject *__pyx_kp_s_Cannot_assign_to_read_only_memor;
2538 static PyObject *__pyx_kp_s_Cannot_create_writable_memory_vi;
2539 static PyObject *__pyx_kp_s_Cannot_index_with_type_s;
2540 static PyObject *__pyx_n_s_Comm;
2541 static PyObject *__pyx_n_s_Ellipsis;
2542 static PyObject *__pyx_kp_s_Empty_shape_tuple_for_cython_arr;
2543 static PyObject *__pyx_kp_u_Format_string_allocated_too_shor;
2544 static PyObject *__pyx_kp_u_Format_string_allocated_too_shor_2;
2545 static PyObject *__pyx_n_s_ImportError;
2546 static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0xb0;
2547 static PyObject *__pyx_n_s_IndexError;
2548 static PyObject *__pyx_kp_s_Indirect_dimensions_not_supporte;
2549 static PyObject *__pyx_kp_s_Invalid_mode_expected_c_or_fortr;
2550 static PyObject *__pyx_kp_s_Invalid_shape_in_axis_d_d;
2551 static PyObject *__pyx_n_s_Lx;
2552 static PyObject *__pyx_n_s_Ly;
2553 static PyObject *__pyx_n_s_Lz;
2554 static PyObject *__pyx_n_s_MPI;
2555 static PyObject *__pyx_n_s_MemoryError;
2556 static PyObject *__pyx_kp_s_MemoryView_of_r_at_0x_x;
2557 static PyObject *__pyx_kp_s_MemoryView_of_r_object;
2558 static PyObject *__pyx_kp_u_Non_native_byte_order_not_suppor;
2559 static PyObject *__pyx_n_b_O;
2560 static PyObject *__pyx_kp_s_Out_of_bounds_on_buffer_access_a;
2561 static PyObject *__pyx_n_s_PickleError;
2562 static PyObject *__pyx_n_s_RuntimeError;
2563 static PyObject *__pyx_kp_b_T;
2564 static PyObject *__pyx_n_s_TypeError;
2565 static PyObject *__pyx_n_s_U_KNOT;
2566 static PyObject *__pyx_kp_s_Unable_to_convert_item_to_object;
2567 static PyObject *__pyx_n_s_V_KNOT;
2568 static PyObject *__pyx_n_s_ValueError;
2569 static PyObject *__pyx_n_s_View_MemoryView;
2570 static PyObject *__pyx_n_s_W_KNOT;
2571 static PyObject *__pyx_kp_b__31;
2572 static PyObject *__pyx_kp_b__32;
2573 static PyObject *__pyx_kp_b__33;
2574 static PyObject *__pyx_kp_b__34;
2575 static PyObject *__pyx_kp_u__35;
2576 static PyObject *__pyx_n_s_allocate_buffer;
2577 static PyObject *__pyx_n_s_asarray;
2578 static PyObject *__pyx_n_s_base;
2579 static PyObject *__pyx_n_s_buildPythonMeshInterface;
2580 static PyObject *__pyx_n_s_buildPythonMeshInterfaceNoArrays;
2581 static PyObject *__pyx_n_s_buildPythonMultilevelMeshInterfa;
2582 static PyObject *__pyx_n_s_c;
2583 static PyObject *__pyx_n_u_c;
2584 static PyObject *__pyx_n_s_class;
2585 static PyObject *__pyx_n_s_cline_in_traceback;
2586 static PyObject *__pyx_n_s_cmesh;
2587 static PyObject *__pyx_n_s_cmeshList;
2588 static PyObject *__pyx_n_s_cmeshTools;
2589 static PyObject *__pyx_n_s_cmultilevelMesh;
2590 static PyObject *__pyx_kp_s_contiguous_and_direct;
2591 static PyObject *__pyx_kp_s_contiguous_and_indirect;
2592 static PyObject *__pyx_n_s_dict;
2593 static PyObject *__pyx_n_s_dtype;
2594 static PyObject *__pyx_n_s_dtype_is_object;
2595 static PyObject *__pyx_n_s_edgeNodesArray;
2596 static PyObject *__pyx_n_s_elementBarycentersArray;
2597 static PyObject *__pyx_n_s_elementBoundariesArray;
2598 static PyObject *__pyx_n_s_elementBoundaryBarycentersArray;
2599 static PyObject *__pyx_n_s_elementBoundaryDiametersArray;
2600 static PyObject *__pyx_n_s_elementBoundaryElementsArray;
2601 static PyObject *__pyx_n_s_elementBoundaryLocalElementBound;
2602 static PyObject *__pyx_n_s_elementBoundaryMaterialTypes;
2603 static PyObject *__pyx_n_s_elementBoundaryNodesArray;
2604 static PyObject *__pyx_n_s_elementChildrenArrayList;
2605 static PyObject *__pyx_n_s_elementChildrenOffsetsList;
2606 static PyObject *__pyx_n_s_elementDiametersArray;
2607 static PyObject *__pyx_n_s_elementIJK;
2608 static PyObject *__pyx_n_s_elementInnerDiametersArray;
2609 static PyObject *__pyx_n_s_elementMaterialTypes;
2610 static PyObject *__pyx_n_s_elementNeighborsArray;
2611 static PyObject *__pyx_n_s_elementNodesArray;
2612 static PyObject *__pyx_n_s_elementParentsArrayList;
2613 static PyObject *__pyx_n_s_elementTagArray;
2614 static PyObject *__pyx_n_s_empty;
2615 static PyObject *__pyx_n_s_encode;
2616 static PyObject *__pyx_n_s_end;
2617 static PyObject *__pyx_n_s_enumerate;
2618 static PyObject *__pyx_n_s_error;
2619 static PyObject *__pyx_n_s_exteriorElementBoundariesArray;
2620 static PyObject *__pyx_n_s_failed;
2621 static PyObject *__pyx_n_s_file;
2622 static PyObject *__pyx_n_s_filebase;
2623 static PyObject *__pyx_n_s_finestLevel;
2624 static PyObject *__pyx_n_s_flags;
2625 static PyObject *__pyx_n_s_format;
2626 static PyObject *__pyx_n_s_fortran;
2627 static PyObject *__pyx_n_u_fortran;
2628 static PyObject *__pyx_n_s_getstate;
2629 static PyObject *__pyx_kp_s_got_differing_extents_in_dimensi;
2630 static PyObject *__pyx_n_s_h;
2631 static PyObject *__pyx_n_s_hMin;
2632 static PyObject *__pyx_n_s_id;
2633 static PyObject *__pyx_n_s_import;
2634 static PyObject *__pyx_n_s_int32;
2635 static PyObject *__pyx_n_s_interiorElementBoundariesArray;
2636 static PyObject *__pyx_n_s_itemsize;
2637 static PyObject *__pyx_kp_s_itemsize_0_for_cython_array;
2638 static PyObject *__pyx_n_s_join;
2639 static PyObject *__pyx_n_s_locallyRefineMultilevelMesh;
2640 static PyObject *__pyx_kp_s_locallyRefine_nSpace_0_d_not_imp;
2641 static PyObject *__pyx_n_s_main;
2642 static PyObject *__pyx_n_s_max_nElements_node;
2643 static PyObject *__pyx_n_s_max_nNodeNeighbors_node;
2644 static PyObject *__pyx_n_s_memview;
2645 static PyObject *__pyx_n_s_mode;
2646 static PyObject *__pyx_n_s_mpi4py;
2647 static PyObject *__pyx_n_s_nEdges_global;
2648 static PyObject *__pyx_n_s_nElementBoundaries_element;
2649 static PyObject *__pyx_n_s_nElementBoundaries_global;
2650 static PyObject *__pyx_n_s_nElements_global;
2651 static PyObject *__pyx_n_s_nExteriorElementBoundaries_globa;
2652 static PyObject *__pyx_n_s_nInteriorElementBoundaries_globa;
2653 static PyObject *__pyx_n_s_nLevels;
2654 static PyObject *__pyx_n_s_nNodes_element;
2655 static PyObject *__pyx_n_s_nNodes_elementBoundary;
2656 static PyObject *__pyx_n_s_nNodes_global;
2657 static PyObject *__pyx_n_s_nSpace;
2658 static PyObject *__pyx_n_s_name;
2659 static PyObject *__pyx_n_s_name_2;
2660 static PyObject *__pyx_kp_u_ndarray_is_not_C_contiguous;
2661 static PyObject *__pyx_kp_u_ndarray_is_not_Fortran_contiguou;
2662 static PyObject *__pyx_n_s_ndim;
2663 static PyObject *__pyx_n_s_new;
2664 static PyObject *__pyx_kp_s_no_default___reduce___due_to_non;
2665 static PyObject *__pyx_n_s_nodeArray;
2666 static PyObject *__pyx_n_s_nodeDiametersArray;
2667 static PyObject *__pyx_n_s_nodeElementOffsets;
2668 static PyObject *__pyx_n_s_nodeElementsArray;
2669 static PyObject *__pyx_n_s_nodeMaterialTypes;
2670 static PyObject *__pyx_n_s_nodeStarArray;
2671 static PyObject *__pyx_n_s_nodeStarOffsets;
2672 static PyObject *__pyx_n_s_nodeSupportArray;
2673 static PyObject *__pyx_n_s_np;
2674 static PyObject *__pyx_n_s_numpy;
2675 static PyObject *__pyx_kp_s_numpy_core_multiarray_failed_to;
2676 static PyObject *__pyx_kp_s_numpy_core_umath_failed_to_impor;
2677 static PyObject *__pyx_n_s_nx;
2678 static PyObject *__pyx_n_s_ny;
2679 static PyObject *__pyx_n_s_nz;
2680 static PyObject *__pyx_n_s_obj;
2681 static PyObject *__pyx_n_s_pack;
2682 static PyObject *__pyx_n_s_pickle;
2683 static PyObject *__pyx_n_s_print;
2684 static PyObject *__pyx_n_s_proteus;
2685 static PyObject *__pyx_kp_s_proteus_cmeshTools_pyx;
2686 static PyObject *__pyx_n_s_px;
2687 static PyObject *__pyx_n_s_py;
2688 static PyObject *__pyx_n_s_pyx_PickleError;
2689 static PyObject *__pyx_n_s_pyx_checksum;
2690 static PyObject *__pyx_n_s_pyx_getbuffer;
2691 static PyObject *__pyx_n_s_pyx_result;
2692 static PyObject *__pyx_n_s_pyx_state;
2693 static PyObject *__pyx_n_s_pyx_type;
2694 static PyObject *__pyx_n_s_pyx_unpickle_Enum;
2695 static PyObject *__pyx_n_s_pyx_vtable;
2696 static PyObject *__pyx_n_s_pz;
2697 static PyObject *__pyx_n_s_range;
2698 static PyObject *__pyx_n_s_reduce;
2699 static PyObject *__pyx_n_s_reduce_cython;
2700 static PyObject *__pyx_n_s_reduce_ex;
2701 static PyObject *__pyx_n_s_refineTypeFlag;
2702 static PyObject *__pyx_kp_u_s;
2703 static PyObject *__pyx_kp_s_self_mesh_cannot_be_converted_to;
2704 static PyObject *__pyx_kp_s_self_multilevelMesh_cannot_be_co;
2705 static PyObject *__pyx_n_s_setNewestNodeBases;
2706 static PyObject *__pyx_kp_s_setNewestNodeBases_0_d_not_imple;
2707 static PyObject *__pyx_n_s_setstate;
2708 static PyObject *__pyx_n_s_setstate_cython;
2709 static PyObject *__pyx_n_s_shape;
2710 static PyObject *__pyx_n_s_sigmaMax;
2711 static PyObject *__pyx_n_s_size;
2712 static PyObject *__pyx_n_s_start;
2713 static PyObject *__pyx_n_s_step;
2714 static PyObject *__pyx_n_s_stop;
2715 static PyObject *__pyx_kp_s_strided_and_direct;
2716 static PyObject *__pyx_kp_s_strided_and_direct_or_indirect;
2717 static PyObject *__pyx_kp_s_strided_and_indirect;
2718 static PyObject *__pyx_kp_s_stringsource;
2719 static PyObject *__pyx_n_s_struct;
2720 static PyObject *__pyx_n_s_test;
2721 static PyObject *__pyx_n_s_triangleFlag;
2722 static PyObject *__pyx_kp_s_unable_to_allocate_array_data;
2723 static PyObject *__pyx_kp_s_unable_to_allocate_shape_and_str;
2724 static PyObject *__pyx_kp_u_unknown_dtype_code_in_numpy_pxd;
2725 static PyObject *__pyx_n_s_unpack;
2726 static PyObject *__pyx_n_s_update;
2727 static PyObject *__pyx_n_s_volume;
2728 static PyObject *__pyx_n_s_weights;
2729 static PyObject *__pyx_kp_s_wrong_nLevels;
2730 static PyObject *__pyx_n_s_zeros;
2731 static int __pyx_pf_10cmeshTools_5CMesh___init__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2732 static PyObject *__pyx_pf_10cmeshTools_5CMesh_2buildPythonMeshInterface(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2733 static PyObject *__pyx_pf_10cmeshTools_5CMesh_4buildPythonMeshInterfaceNoArrays(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2734 static PyObject *__pyx_pf_10cmeshTools_5CMesh_16nElements_global___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2735 static int __pyx_pf_10cmeshTools_5CMesh_16nElements_global_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2736 static PyObject *__pyx_pf_10cmeshTools_5CMesh_13nNodes_global___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2737 static int __pyx_pf_10cmeshTools_5CMesh_13nNodes_global_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2738 static PyObject *__pyx_pf_10cmeshTools_5CMesh_14nNodes_element___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2739 static int __pyx_pf_10cmeshTools_5CMesh_14nNodes_element_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2740 static PyObject *__pyx_pf_10cmeshTools_5CMesh_22nNodes_elementBoundary___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2741 static int __pyx_pf_10cmeshTools_5CMesh_22nNodes_elementBoundary_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2742 static PyObject *__pyx_pf_10cmeshTools_5CMesh_26nElementBoundaries_element___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2743 static int __pyx_pf_10cmeshTools_5CMesh_26nElementBoundaries_element_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2744 static PyObject *__pyx_pf_10cmeshTools_5CMesh_25nElementBoundaries_global___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2745 static int __pyx_pf_10cmeshTools_5CMesh_25nElementBoundaries_global_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2746 static PyObject *__pyx_pf_10cmeshTools_5CMesh_33nInteriorElementBoundaries_global___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2747 static int __pyx_pf_10cmeshTools_5CMesh_33nInteriorElementBoundaries_global_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2748 static PyObject *__pyx_pf_10cmeshTools_5CMesh_33nExteriorElementBoundaries_global___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2749 static int __pyx_pf_10cmeshTools_5CMesh_33nExteriorElementBoundaries_global_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2750 static PyObject *__pyx_pf_10cmeshTools_5CMesh_18max_nElements_node___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2751 static int __pyx_pf_10cmeshTools_5CMesh_18max_nElements_node_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2752 static PyObject *__pyx_pf_10cmeshTools_5CMesh_13nEdges_global___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2753 static int __pyx_pf_10cmeshTools_5CMesh_13nEdges_global_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2754 static PyObject *__pyx_pf_10cmeshTools_5CMesh_23max_nNodeNeighbors_node___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2755 static int __pyx_pf_10cmeshTools_5CMesh_23max_nNodeNeighbors_node_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2756 static PyObject *__pyx_pf_10cmeshTools_5CMesh_17elementNodesArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2757 static int __pyx_pf_10cmeshTools_5CMesh_17elementNodesArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2758 static int __pyx_pf_10cmeshTools_5CMesh_17elementNodesArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2759 static PyObject *__pyx_pf_10cmeshTools_5CMesh_17nodeElementsArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2760 static int __pyx_pf_10cmeshTools_5CMesh_17nodeElementsArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2761 static int __pyx_pf_10cmeshTools_5CMesh_17nodeElementsArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2762 static PyObject *__pyx_pf_10cmeshTools_5CMesh_18nodeElementOffsets___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2763 static int __pyx_pf_10cmeshTools_5CMesh_18nodeElementOffsets_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2764 static int __pyx_pf_10cmeshTools_5CMesh_18nodeElementOffsets_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2765 static PyObject *__pyx_pf_10cmeshTools_5CMesh_21elementNeighborsArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2766 static int __pyx_pf_10cmeshTools_5CMesh_21elementNeighborsArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2767 static int __pyx_pf_10cmeshTools_5CMesh_21elementNeighborsArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2768 static PyObject *__pyx_pf_10cmeshTools_5CMesh_22elementBoundariesArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2769 static int __pyx_pf_10cmeshTools_5CMesh_22elementBoundariesArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2770 static int __pyx_pf_10cmeshTools_5CMesh_22elementBoundariesArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2771 static PyObject *__pyx_pf_10cmeshTools_5CMesh_25elementBoundaryNodesArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2772 static int __pyx_pf_10cmeshTools_5CMesh_25elementBoundaryNodesArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2773 static int __pyx_pf_10cmeshTools_5CMesh_25elementBoundaryNodesArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2774 static PyObject *__pyx_pf_10cmeshTools_5CMesh_28elementBoundaryElementsArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2775 static int __pyx_pf_10cmeshTools_5CMesh_28elementBoundaryElementsArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2776 static int __pyx_pf_10cmeshTools_5CMesh_28elementBoundaryElementsArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2777 static PyObject *__pyx_pf_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2778 static int __pyx_pf_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2779 static int __pyx_pf_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2780 static PyObject *__pyx_pf_10cmeshTools_5CMesh_30interiorElementBoundariesArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2781 static int __pyx_pf_10cmeshTools_5CMesh_30interiorElementBoundariesArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2782 static int __pyx_pf_10cmeshTools_5CMesh_30interiorElementBoundariesArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2783 static PyObject *__pyx_pf_10cmeshTools_5CMesh_30exteriorElementBoundariesArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2784 static int __pyx_pf_10cmeshTools_5CMesh_30exteriorElementBoundariesArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2785 static int __pyx_pf_10cmeshTools_5CMesh_30exteriorElementBoundariesArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2786 static PyObject *__pyx_pf_10cmeshTools_5CMesh_14edgeNodesArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2787 static int __pyx_pf_10cmeshTools_5CMesh_14edgeNodesArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2788 static int __pyx_pf_10cmeshTools_5CMesh_14edgeNodesArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2789 static PyObject *__pyx_pf_10cmeshTools_5CMesh_13nodeStarArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2790 static int __pyx_pf_10cmeshTools_5CMesh_13nodeStarArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2791 static int __pyx_pf_10cmeshTools_5CMesh_13nodeStarArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2792 static PyObject *__pyx_pf_10cmeshTools_5CMesh_15nodeStarOffsets___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2793 static int __pyx_pf_10cmeshTools_5CMesh_15nodeStarOffsets_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2794 static int __pyx_pf_10cmeshTools_5CMesh_15nodeStarOffsets_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2795 static PyObject *__pyx_pf_10cmeshTools_5CMesh_20elementMaterialTypes___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2796 static int __pyx_pf_10cmeshTools_5CMesh_20elementMaterialTypes_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2797 static int __pyx_pf_10cmeshTools_5CMesh_20elementMaterialTypes_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2798 static PyObject *__pyx_pf_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2799 static int __pyx_pf_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2800 static int __pyx_pf_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2801 static PyObject *__pyx_pf_10cmeshTools_5CMesh_17nodeMaterialTypes___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2802 static int __pyx_pf_10cmeshTools_5CMesh_17nodeMaterialTypes_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2803 static int __pyx_pf_10cmeshTools_5CMesh_17nodeMaterialTypes_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2804 static PyObject *__pyx_pf_10cmeshTools_5CMesh_9nodeArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2805 static int __pyx_pf_10cmeshTools_5CMesh_9nodeArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2806 static int __pyx_pf_10cmeshTools_5CMesh_9nodeArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2807 static PyObject *__pyx_pf_10cmeshTools_5CMesh_2nx___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2808 static int __pyx_pf_10cmeshTools_5CMesh_2nx_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2809 static PyObject *__pyx_pf_10cmeshTools_5CMesh_2ny___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2810 static int __pyx_pf_10cmeshTools_5CMesh_2ny_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2811 static PyObject *__pyx_pf_10cmeshTools_5CMesh_2nz___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2812 static int __pyx_pf_10cmeshTools_5CMesh_2nz_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2813 static PyObject *__pyx_pf_10cmeshTools_5CMesh_2px___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2814 static int __pyx_pf_10cmeshTools_5CMesh_2px_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2815 static PyObject *__pyx_pf_10cmeshTools_5CMesh_2py___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2816 static int __pyx_pf_10cmeshTools_5CMesh_2py_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2817 static PyObject *__pyx_pf_10cmeshTools_5CMesh_2pz___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2818 static int __pyx_pf_10cmeshTools_5CMesh_2pz_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2819 static PyObject *__pyx_pf_10cmeshTools_5CMesh_10elementIJK___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2820 static int __pyx_pf_10cmeshTools_5CMesh_10elementIJK_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2821 static int __pyx_pf_10cmeshTools_5CMesh_10elementIJK_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2822 static PyObject *__pyx_pf_10cmeshTools_5CMesh_7weights___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2823 static int __pyx_pf_10cmeshTools_5CMesh_7weights_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2824 static int __pyx_pf_10cmeshTools_5CMesh_7weights_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2825 static PyObject *__pyx_pf_10cmeshTools_5CMesh_6U_KNOT___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2826 static int __pyx_pf_10cmeshTools_5CMesh_6U_KNOT_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2827 static int __pyx_pf_10cmeshTools_5CMesh_6U_KNOT_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2828 static PyObject *__pyx_pf_10cmeshTools_5CMesh_6V_KNOT___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2829 static int __pyx_pf_10cmeshTools_5CMesh_6V_KNOT_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2830 static int __pyx_pf_10cmeshTools_5CMesh_6V_KNOT_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2831 static PyObject *__pyx_pf_10cmeshTools_5CMesh_6W_KNOT___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2832 static int __pyx_pf_10cmeshTools_5CMesh_6W_KNOT_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2833 static int __pyx_pf_10cmeshTools_5CMesh_6W_KNOT_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2834 static PyObject *__pyx_pf_10cmeshTools_5CMesh_21elementDiametersArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2835 static int __pyx_pf_10cmeshTools_5CMesh_21elementDiametersArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2836 static int __pyx_pf_10cmeshTools_5CMesh_21elementDiametersArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2837 static PyObject *__pyx_pf_10cmeshTools_5CMesh_26elementInnerDiametersArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2838 static int __pyx_pf_10cmeshTools_5CMesh_26elementInnerDiametersArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2839 static int __pyx_pf_10cmeshTools_5CMesh_26elementInnerDiametersArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2840 static PyObject *__pyx_pf_10cmeshTools_5CMesh_29elementBoundaryDiametersArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2841 static int __pyx_pf_10cmeshTools_5CMesh_29elementBoundaryDiametersArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2842 static int __pyx_pf_10cmeshTools_5CMesh_29elementBoundaryDiametersArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2843 static PyObject *__pyx_pf_10cmeshTools_5CMesh_23elementBarycentersArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2844 static int __pyx_pf_10cmeshTools_5CMesh_23elementBarycentersArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2845 static int __pyx_pf_10cmeshTools_5CMesh_23elementBarycentersArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2846 static PyObject *__pyx_pf_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2847 static int __pyx_pf_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2848 static int __pyx_pf_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2849 static PyObject *__pyx_pf_10cmeshTools_5CMesh_18nodeDiametersArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2850 static int __pyx_pf_10cmeshTools_5CMesh_18nodeDiametersArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2851 static int __pyx_pf_10cmeshTools_5CMesh_18nodeDiametersArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2852 static PyObject *__pyx_pf_10cmeshTools_5CMesh_16nodeSupportArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2853 static int __pyx_pf_10cmeshTools_5CMesh_16nodeSupportArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2854 static int __pyx_pf_10cmeshTools_5CMesh_16nodeSupportArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2855 static PyObject *__pyx_pf_10cmeshTools_5CMesh_1h___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2856 static int __pyx_pf_10cmeshTools_5CMesh_1h_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2857 static PyObject *__pyx_pf_10cmeshTools_5CMesh_4hMin___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2858 static int __pyx_pf_10cmeshTools_5CMesh_4hMin_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2859 static PyObject *__pyx_pf_10cmeshTools_5CMesh_8sigmaMax___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2860 static int __pyx_pf_10cmeshTools_5CMesh_8sigmaMax_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2861 static PyObject *__pyx_pf_10cmeshTools_5CMesh_6volume___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2862 static int __pyx_pf_10cmeshTools_5CMesh_6volume_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value);
2863 static PyObject *__pyx_pf_10cmeshTools_5CMesh_6__reduce_cython__(CYTHON_UNUSED
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self);
2864 static PyObject *__pyx_pf_10cmeshTools_5CMesh_8__setstate_cython__(CYTHON_UNUSED
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state);
2865 static PyObject *__pyx_pf_10cmeshTools_buildPythonMeshInterface(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
2866 static PyObject *__pyx_pf_10cmeshTools_2buildPythonMeshInterfaceNoArrays(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
2867 static int __pyx_pf_10cmeshTools_15CMultilevelMesh___init__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_nLevels);
2868 static PyObject *__pyx_pf_10cmeshTools_15CMultilevelMesh_2buildPythonMultilevelMeshInterface(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self);
2869 static PyObject *__pyx_pf_10cmeshTools_15CMultilevelMesh_7nLevels___get__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self);
2870 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_7nLevels_2__set__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self, PyObject *__pyx_v_value);
2871 static PyObject *__pyx_pf_10cmeshTools_15CMultilevelMesh_9cmeshList___get__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self);
2872 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_9cmeshList_2__set__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self, PyObject *__pyx_v_value);
2873 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_9cmeshList_4__del__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self);
2874 static PyObject *__pyx_pf_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList___get__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self);
2875 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList_2__set__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self, PyObject *__pyx_v_value);
2876 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList_4__del__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self);
2877 static PyObject *__pyx_pf_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList___get__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self);
2878 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList_2__set__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self, PyObject *__pyx_v_value);
2879 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList_4__del__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self);
2880 static PyObject *__pyx_pf_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList___get__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self);
2881 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList_2__set__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self, PyObject *__pyx_v_value);
2882 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList_4__del__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self);
2883 static PyObject *__pyx_pf_10cmeshTools_15CMultilevelMesh_4__reduce_cython__(CYTHON_UNUSED
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self);
2884 static PyObject *__pyx_pf_10cmeshTools_15CMultilevelMesh_6__setstate_cython__(CYTHON_UNUSED
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state);
2885 static PyObject *__pyx_pf_10cmeshTools_4buildPythonMultilevelMeshInterface(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_cmultilevelMesh);
2886 static PyObject *__pyx_pf_10cmeshTools_6generateTetrahedralMeshFromRectangularGrid(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nx,
int __pyx_v_ny,
int __pyx_v_nz,
double __pyx_v_Lx,
double __pyx_v_Ly,
double __pyx_v_Lz,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2887 static PyObject *__pyx_pf_10cmeshTools_8cmeshToolsComputeGeometricInfo_tetrahedron(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2888 static PyObject *__pyx_pf_10cmeshTools_10generateFromTriangleFiles(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base);
2889 static PyObject *__pyx_pf_10cmeshTools_12writeTriangleFiles(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base);
2890 static PyObject *__pyx_pf_10cmeshTools_14generateFromTetgenFiles(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base);
2891 static PyObject *__pyx_pf_10cmeshTools_16generateFromTetgenFilesParallel(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base);
2892 static PyObject *__pyx_pf_10cmeshTools_18writeTetgenFiles(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base);
2893 static PyObject *__pyx_pf_10cmeshTools_20write3dmFiles(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base);
2894 static PyObject *__pyx_pf_10cmeshTools_22write2dmFiles(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base);
2895 static PyObject *__pyx_pf_10cmeshTools_24generateFromHexFile(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base);
2896 static PyObject *__pyx_pf_10cmeshTools_26generateFrom3DMFile(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base);
2897 static PyObject *__pyx_pf_10cmeshTools_28generateFrom2DMFile(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base);
2898 static PyObject *__pyx_pf_10cmeshTools_30computeGeometricInfo_tetrahedron(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2899 static PyObject *__pyx_pf_10cmeshTools_32allocateGeometricInfo_tetrahedron(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2900 static PyObject *__pyx_pf_10cmeshTools_34allocateNodeAndElementNodeDataStructures(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh,
int __pyx_v_nElements_global,
int __pyx_v_nNodes_global,
int __pyx_v_nNodes_element);
2901 static PyObject *__pyx_pf_10cmeshTools_36constructElementBoundaryElementsArray(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2902 static PyObject *__pyx_pf_10cmeshTools_38generateTriangularMeshFromRectangularGrid(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nx,
int __pyx_v_ny,
double __pyx_v_Lx,
double __pyx_v_Ly,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh,
int __pyx_v_triangleFlag);
2903 static PyObject *__pyx_pf_10cmeshTools_40generateHexahedralMeshFromRectangularGrid(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nx,
int __pyx_v_ny,
int __pyx_v_nz,
int __pyx_v_px,
int __pyx_v_py,
int __pyx_v_pz,
double __pyx_v_Lx,
double __pyx_v_Ly,
double __pyx_v_Lz,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2904 static PyObject *__pyx_pf_10cmeshTools_42generateQuadrilateralMeshFromRectangularGrid(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nx,
int __pyx_v_ny,
int __pyx_v_px,
int __pyx_v_py,
double __pyx_v_Lx,
double __pyx_v_Ly,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2905 static PyObject *__pyx_pf_10cmeshTools_44computeGeometricInfo_triangle(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2906 static PyObject *__pyx_pf_10cmeshTools_46allocateGeometricInfo_triangle(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2907 static PyObject *__pyx_pf_10cmeshTools_48generateEdgeMeshFromRectangularGrid(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nx,
double __pyx_v_Lx,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2908 static PyObject *__pyx_pf_10cmeshTools_50computeGeometricInfo_edge(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2909 static PyObject *__pyx_pf_10cmeshTools_52allocateGeometricInfo_edge(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2910 static PyObject *__pyx_pf_10cmeshTools_54computeGeometricInfo_hexahedron(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2911 static PyObject *__pyx_pf_10cmeshTools_56computeGeometricInfo_quadrilateral(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2912 static PyObject *__pyx_pf_10cmeshTools_58allocateGeometricInfo_hexahedron(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2913 static PyObject *__pyx_pf_10cmeshTools_60allocateGeometricInfo_quadrilateral(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2914 static PyObject *__pyx_pf_10cmeshTools_62computeGeometricInfo_NURBS(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2915 static PyObject *__pyx_pf_10cmeshTools_64allocateGeometricInfo_NURBS(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh);
2916 static PyObject *__pyx_pf_10cmeshTools_66locallyRefineMultilevelMesh(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nSpace,
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_cmultilevelMesh, PyArrayObject *__pyx_v_elementTagArray,
int __pyx_v_refineTypeFlag);
2917 static PyObject *__pyx_pf_10cmeshTools_68setNewestNodeBases(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nSpace,
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_cmultilevelMesh);
2918 static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags);
2919 static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info);
2920 static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(
struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_shape, Py_ssize_t __pyx_v_itemsize, PyObject *__pyx_v_format, PyObject *__pyx_v_mode,
int __pyx_v_allocate_buffer);
2921 static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(
struct __pyx_array_obj *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags);
2922 static void __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(
struct __pyx_array_obj *__pyx_v_self);
2923 static PyObject *__pyx_pf_15View_dot_MemoryView_5array_7memview___get__(
struct __pyx_array_obj *__pyx_v_self);
2924 static Py_ssize_t __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(
struct __pyx_array_obj *__pyx_v_self);
2925 static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_8__getattr__(
struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_attr);
2926 static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_10__getitem__(
struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item);
2927 static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_12__setitem__(
struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item, PyObject *__pyx_v_value);
2928 static PyObject *__pyx_pf___pyx_array___reduce_cython__(CYTHON_UNUSED
struct __pyx_array_obj *__pyx_v_self);
2929 static PyObject *__pyx_pf___pyx_array_2__setstate_cython__(CYTHON_UNUSED
struct __pyx_array_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state);
2930 static int __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum___init__(
struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v_name);
2931 static PyObject *__pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum_2__repr__(
struct __pyx_MemviewEnum_obj *__pyx_v_self);
2932 static PyObject *__pyx_pf___pyx_MemviewEnum___reduce_cython__(
struct __pyx_MemviewEnum_obj *__pyx_v_self);
2933 static PyObject *__pyx_pf___pyx_MemviewEnum_2__setstate_cython__(
struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v___pyx_state);
2934 static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit__(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj,
int __pyx_v_flags,
int __pyx_v_dtype_is_object);
2935 static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__dealloc__(
struct __pyx_memoryview_obj *__pyx_v_self);
2936 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4__getitem__(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index);
2937 static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setitem__(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value);
2938 static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbuffer__(
struct __pyx_memoryview_obj *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags);
2939 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
2940 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
2941 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_5shape___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
2942 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
2943 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
2944 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4ndim___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
2945 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_8itemsize___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
2946 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_6nbytes___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
2947 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(
struct __pyx_memoryview_obj *__pyx_v_self);
2948 static Py_ssize_t __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_10__len__(
struct __pyx_memoryview_obj *__pyx_v_self);
2949 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12__repr__(
struct __pyx_memoryview_obj *__pyx_v_self);
2950 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_14__str__(
struct __pyx_memoryview_obj *__pyx_v_self);
2951 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16is_c_contig(
struct __pyx_memoryview_obj *__pyx_v_self);
2952 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18is_f_contig(
struct __pyx_memoryview_obj *__pyx_v_self);
2953 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20copy(
struct __pyx_memoryview_obj *__pyx_v_self);
2954 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22copy_fortran(
struct __pyx_memoryview_obj *__pyx_v_self);
2955 static PyObject *__pyx_pf___pyx_memoryview___reduce_cython__(CYTHON_UNUSED
struct __pyx_memoryview_obj *__pyx_v_self);
2956 static PyObject *__pyx_pf___pyx_memoryview_2__setstate_cython__(CYTHON_UNUSED
struct __pyx_memoryview_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state);
2957 static void __pyx_memoryviewslice___pyx_pf_15View_dot_MemoryView_16_memoryviewslice___dealloc__(
struct __pyx_memoryviewslice_obj *__pyx_v_self);
2958 static PyObject *__pyx_pf_15View_dot_MemoryView_16_memoryviewslice_4base___get__(
struct __pyx_memoryviewslice_obj *__pyx_v_self);
2959 static PyObject *__pyx_pf___pyx_memoryviewslice___reduce_cython__(CYTHON_UNUSED
struct __pyx_memoryviewslice_obj *__pyx_v_self);
2960 static PyObject *__pyx_pf___pyx_memoryviewslice_2__setstate_cython__(CYTHON_UNUSED
struct __pyx_memoryviewslice_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state);
2961 static PyObject *__pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type,
long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state);
2962 static PyObject *__pyx_tp_new_10cmeshTools_CMesh(PyTypeObject *t, PyObject *a, PyObject *k);
2963 static PyObject *__pyx_tp_new_10cmeshTools_CMultilevelMesh(PyTypeObject *t, PyObject *a, PyObject *k);
2964 static PyObject *__pyx_tp_new_array(PyTypeObject *t, PyObject *a, PyObject *k);
2965 static PyObject *__pyx_tp_new_Enum(PyTypeObject *t, PyObject *a, PyObject *k);
2966 static PyObject *__pyx_tp_new_memoryview(PyTypeObject *t, PyObject *a, PyObject *k);
2967 static PyObject *__pyx_tp_new__memoryviewslice(PyTypeObject *t, PyObject *a, PyObject *k);
2968 static PyObject *__pyx_int_0;
2969 static PyObject *__pyx_int_1;
2970 static PyObject *__pyx_int_184977713;
2971 static PyObject *__pyx_int_neg_1;
2972 static PyObject *__pyx_tuple_;
2973 static PyObject *__pyx_tuple__2;
2974 static PyObject *__pyx_tuple__3;
2975 static PyObject *__pyx_tuple__4;
2976 static PyObject *__pyx_tuple__5;
2977 static PyObject *__pyx_tuple__6;
2978 static PyObject *__pyx_tuple__7;
2979 static PyObject *__pyx_tuple__8;
2980 static PyObject *__pyx_tuple__9;
2981 static PyObject *__pyx_slice__27;
2982 static PyObject *__pyx_tuple__10;
2983 static PyObject *__pyx_tuple__11;
2984 static PyObject *__pyx_tuple__12;
2985 static PyObject *__pyx_tuple__13;
2986 static PyObject *__pyx_tuple__14;
2987 static PyObject *__pyx_tuple__15;
2988 static PyObject *__pyx_tuple__16;
2989 static PyObject *__pyx_tuple__17;
2990 static PyObject *__pyx_tuple__18;
2991 static PyObject *__pyx_tuple__19;
2992 static PyObject *__pyx_tuple__20;
2993 static PyObject *__pyx_tuple__21;
2994 static PyObject *__pyx_tuple__22;
2995 static PyObject *__pyx_tuple__23;
2996 static PyObject *__pyx_tuple__24;
2997 static PyObject *__pyx_tuple__25;
2998 static PyObject *__pyx_tuple__26;
2999 static PyObject *__pyx_tuple__28;
3000 static PyObject *__pyx_tuple__29;
3001 static PyObject *__pyx_tuple__30;
3002 static PyObject *__pyx_tuple__36;
3003 static PyObject *__pyx_tuple__38;
3004 static PyObject *__pyx_tuple__40;
3005 static PyObject *__pyx_tuple__42;
3006 static PyObject *__pyx_tuple__44;
3007 static PyObject *__pyx_tuple__46;
3008 static PyObject *__pyx_tuple__47;
3009 static PyObject *__pyx_tuple__48;
3010 static PyObject *__pyx_tuple__49;
3011 static PyObject *__pyx_tuple__50;
3012 static PyObject *__pyx_tuple__51;
3013 static PyObject *__pyx_codeobj__37;
3014 static PyObject *__pyx_codeobj__39;
3015 static PyObject *__pyx_codeobj__41;
3016 static PyObject *__pyx_codeobj__43;
3017 static PyObject *__pyx_codeobj__45;
3018 static PyObject *__pyx_codeobj__52;
3030 static int __pyx_pw_10cmeshTools_5CMesh_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
3031 static int __pyx_pw_10cmeshTools_5CMesh_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
3033 __Pyx_RefNannyDeclarations
3034 __Pyx_RefNannySetupContext(
"__init__ (wrapper)", 0);
3035 if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
3036 __Pyx_RaiseArgtupleInvalid(
"__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args));
return -1;}
3037 if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds,
"__init__", 0)))
return -1;
3038 __pyx_r = __pyx_pf_10cmeshTools_5CMesh___init__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
3041 __Pyx_RefNannyFinishContext();
3045 static int __pyx_pf_10cmeshTools_5CMesh___init__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
3047 __Pyx_RefNannyDeclarations
3048 struct Mesh __pyx_t_1;
3049 __Pyx_RefNannySetupContext(
"__init__", 0);
3058 __pyx_v_self->mesh = __pyx_t_1;
3079 __Pyx_RefNannyFinishContext();
3092 static PyObject *__pyx_pw_10cmeshTools_5CMesh_3buildPythonMeshInterface(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
3093 static PyObject *__pyx_pw_10cmeshTools_5CMesh_3buildPythonMeshInterface(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
3094 PyObject *__pyx_r = 0;
3095 __Pyx_RefNannyDeclarations
3096 __Pyx_RefNannySetupContext(
"buildPythonMeshInterface (wrapper)", 0);
3097 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_2buildPythonMeshInterface(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
3100 __Pyx_RefNannyFinishContext();
3104 static PyObject *__pyx_pf_10cmeshTools_5CMesh_2buildPythonMeshInterface(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
3105 PyObject *__pyx_r = NULL;
3106 __Pyx_RefNannyDeclarations
3108 PyObject *__pyx_t_2 = NULL;
3109 PyObject *__pyx_t_3 = NULL;
3110 PyObject *__pyx_t_4 = NULL;
3112 struct __pyx_array_obj *__pyx_t_6 = NULL;
3113 PyObject *__pyx_t_7 = NULL;
3117 __Pyx_RefNannySetupContext(
"buildPythonMeshInterface", 0);
3126 __pyx_t_1 = __pyx_v_self->mesh.nElements_global;
3127 __pyx_v_self->nElements_global = __pyx_t_1;
3136 __pyx_t_1 = __pyx_v_self->mesh.nNodes_global;
3137 __pyx_v_self->nNodes_global = __pyx_t_1;
3146 __pyx_t_1 = __pyx_v_self->mesh.nNodes_element;
3147 __pyx_v_self->nNodes_element = __pyx_t_1;
3156 __pyx_t_1 = __pyx_v_self->mesh.nNodes_elementBoundary;
3157 __pyx_v_self->nNodes_elementBoundary = __pyx_t_1;
3166 __pyx_t_1 = __pyx_v_self->mesh.nElementBoundaries_element;
3167 __pyx_v_self->nElementBoundaries_element = __pyx_t_1;
3176 __pyx_t_1 = __pyx_v_self->mesh.nElementBoundaries_global;
3177 __pyx_v_self->nElementBoundaries_global = __pyx_t_1;
3186 __pyx_t_1 = __pyx_v_self->mesh.nInteriorElementBoundaries_global;
3187 __pyx_v_self->nInteriorElementBoundaries_global = __pyx_t_1;
3196 __pyx_t_1 = __pyx_v_self->mesh.nExteriorElementBoundaries_global;
3197 __pyx_v_self->nExteriorElementBoundaries_global = __pyx_t_1;
3206 __pyx_t_1 = __pyx_v_self->mesh.max_nElements_node;
3207 __pyx_v_self->max_nElements_node = __pyx_t_1;
3216 __pyx_t_1 = __pyx_v_self->mesh.nEdges_global;
3217 __pyx_v_self->nEdges_global = __pyx_t_1;
3226 __pyx_t_1 = __pyx_v_self->mesh.max_nNodeNeighbors_node;
3227 __pyx_v_self->max_nNodeNeighbors_node = __pyx_t_1;
3236 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 29, __pyx_L1_error)
3237 __Pyx_GOTREF(__pyx_t_3);
3238 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 29, __pyx_L1_error)
3239 __Pyx_GOTREF(__pyx_t_4);
3240 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3241 __pyx_t_5 = __pyx_v_self->mesh.elementNodesArray;
3243 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
3244 __PYX_ERR(1, 29, __pyx_L1_error)
3246 __pyx_t_7 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
3247 __pyx_t_3 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nElements_global), ((Py_ssize_t)__pyx_v_self->mesh.nNodes_element));
3248 if (unlikely(!__pyx_t_7 || !__pyx_t_3 || !PyBytes_AsString(__pyx_t_7))) __PYX_ERR(1, 29, __pyx_L1_error)
3249 __Pyx_GOTREF(__pyx_t_7);
3250 __Pyx_GOTREF(__pyx_t_3);
3251 __pyx_t_6 = __pyx_array_new(__pyx_t_3,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_7), (
char *)
"c", (
char *) __pyx_t_5);
3252 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 29, __pyx_L1_error)
3253 __Pyx_GOTREF(__pyx_t_6);
3254 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3255 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3257 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
3258 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4);
3259 if (likely(__pyx_t_7)) {
3260 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
3261 __Pyx_INCREF(__pyx_t_7);
3262 __Pyx_INCREF(
function);
3263 __Pyx_DECREF_SET(__pyx_t_4,
function);
3266 __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_7, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_4, ((PyObject *)__pyx_t_6));
3267 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
3268 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
3269 if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 29, __pyx_L1_error)
3270 __Pyx_GOTREF(__pyx_t_2);
3271 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3272 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 29, __pyx_L1_error)
3273 __Pyx_GIVEREF(__pyx_t_2);
3274 __Pyx_GOTREF(__pyx_v_self->elementNodesArray);
3275 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementNodesArray));
3276 __pyx_v_self->elementNodesArray = ((PyArrayObject *)__pyx_t_2);
3286 __pyx_t_8 = ((__pyx_v_self->mesh.nodeElementOffsets != NULL) != 0);
3296 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 31, __pyx_L1_error)
3297 __Pyx_GOTREF(__pyx_t_4);
3298 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 31, __pyx_L1_error)
3299 __Pyx_GOTREF(__pyx_t_7);
3300 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3301 __pyx_t_5 = __pyx_v_self->mesh.nodeElementsArray;
3303 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
3304 __PYX_ERR(1, 31, __pyx_L1_error)
3306 __pyx_t_3 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
3307 __pyx_t_4 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)(__pyx_v_self->mesh.nodeElementOffsets[__pyx_v_self->mesh.nNodes_global])));
3308 if (unlikely(!__pyx_t_3 || !__pyx_t_4 || !PyBytes_AsString(__pyx_t_3))) __PYX_ERR(1, 31, __pyx_L1_error)
3309 __Pyx_GOTREF(__pyx_t_3);
3310 __Pyx_GOTREF(__pyx_t_4);
3311 __pyx_t_6 = __pyx_array_new(__pyx_t_4,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_3), (
char *)
"c", (
char *) __pyx_t_5);
3312 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 31, __pyx_L1_error)
3313 __Pyx_GOTREF(__pyx_t_6);
3314 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3315 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3317 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
3318 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
3319 if (likely(__pyx_t_3)) {
3320 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
3321 __Pyx_INCREF(__pyx_t_3);
3322 __Pyx_INCREF(
function);
3323 __Pyx_DECREF_SET(__pyx_t_7,
function);
3326 __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_3, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, ((PyObject *)__pyx_t_6));
3327 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
3328 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
3329 if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 31, __pyx_L1_error)
3330 __Pyx_GOTREF(__pyx_t_2);
3331 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3332 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 31, __pyx_L1_error)
3333 __Pyx_GIVEREF(__pyx_t_2);
3334 __Pyx_GOTREF(__pyx_v_self->nodeElementsArray);
3335 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeElementsArray));
3336 __pyx_v_self->nodeElementsArray = ((PyArrayObject *)__pyx_t_2);
3346 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 32, __pyx_L1_error)
3347 __Pyx_GOTREF(__pyx_t_7);
3348 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 32, __pyx_L1_error)
3349 __Pyx_GOTREF(__pyx_t_3);
3350 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3351 __pyx_t_5 = __pyx_v_self->mesh.nodeElementOffsets;
3353 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
3354 __PYX_ERR(1, 32, __pyx_L1_error)
3356 __pyx_t_4 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
3357 __pyx_t_7 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)(__pyx_v_self->mesh.nNodes_global + 1)));
3358 if (unlikely(!__pyx_t_4 || !__pyx_t_7 || !PyBytes_AsString(__pyx_t_4))) __PYX_ERR(1, 32, __pyx_L1_error)
3359 __Pyx_GOTREF(__pyx_t_4);
3360 __Pyx_GOTREF(__pyx_t_7);
3361 __pyx_t_6 = __pyx_array_new(__pyx_t_7,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_4), (
char *)
"c", (
char *) __pyx_t_5);
3362 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 32, __pyx_L1_error)
3363 __Pyx_GOTREF(__pyx_t_6);
3364 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3365 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3367 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
3368 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
3369 if (likely(__pyx_t_4)) {
3370 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
3371 __Pyx_INCREF(__pyx_t_4);
3372 __Pyx_INCREF(
function);
3373 __Pyx_DECREF_SET(__pyx_t_3,
function);
3376 __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_t_6));
3377 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
3378 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
3379 if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 32, __pyx_L1_error)
3380 __Pyx_GOTREF(__pyx_t_2);
3381 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3382 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 32, __pyx_L1_error)
3383 __Pyx_GIVEREF(__pyx_t_2);
3384 __Pyx_GOTREF(__pyx_v_self->nodeElementOffsets);
3385 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeElementOffsets));
3386 __pyx_v_self->nodeElementOffsets = ((PyArrayObject *)__pyx_t_2);
3407 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 34, __pyx_L1_error)
3408 __Pyx_GOTREF(__pyx_t_2);
3409 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_empty);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 34, __pyx_L1_error)
3410 __Pyx_GOTREF(__pyx_t_3);
3411 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3412 __pyx_t_2 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 34, __pyx_L1_error)
3413 __Pyx_GOTREF(__pyx_t_2);
3414 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 34, __pyx_L1_error)
3415 __Pyx_GOTREF(__pyx_t_4);
3416 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_int32);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 34, __pyx_L1_error)
3417 __Pyx_GOTREF(__pyx_t_7);
3418 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3419 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, __pyx_t_7) < 0) __PYX_ERR(1, 34, __pyx_L1_error)
3420 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3421 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple_, __pyx_t_2);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 34, __pyx_L1_error)
3422 __Pyx_GOTREF(__pyx_t_7);
3423 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3424 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3425 if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 34, __pyx_L1_error)
3426 __Pyx_GIVEREF(__pyx_t_7);
3427 __Pyx_GOTREF(__pyx_v_self->nodeElementsArray);
3428 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeElementsArray));
3429 __pyx_v_self->nodeElementsArray = ((PyArrayObject *)__pyx_t_7);
3439 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 35, __pyx_L1_error)
3440 __Pyx_GOTREF(__pyx_t_7);
3441 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_empty);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 35, __pyx_L1_error)
3442 __Pyx_GOTREF(__pyx_t_2);
3443 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3444 __pyx_t_7 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 35, __pyx_L1_error)
3445 __Pyx_GOTREF(__pyx_t_7);
3446 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 35, __pyx_L1_error)
3447 __Pyx_GOTREF(__pyx_t_3);
3448 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_int32);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 35, __pyx_L1_error)
3449 __Pyx_GOTREF(__pyx_t_4);
3450 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3451 if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_dtype, __pyx_t_4) < 0) __PYX_ERR(1, 35, __pyx_L1_error)
3452 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3453 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple_, __pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 35, __pyx_L1_error)
3454 __Pyx_GOTREF(__pyx_t_4);
3455 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3456 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3457 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 35, __pyx_L1_error)
3458 __Pyx_GIVEREF(__pyx_t_4);
3459 __Pyx_GOTREF(__pyx_v_self->nodeElementOffsets);
3460 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeElementOffsets));
3461 __pyx_v_self->nodeElementOffsets = ((PyArrayObject *)__pyx_t_4);
3473 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 37, __pyx_L1_error)
3474 __Pyx_GOTREF(__pyx_t_7);
3475 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 37, __pyx_L1_error)
3476 __Pyx_GOTREF(__pyx_t_2);
3477 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3478 __pyx_t_5 = __pyx_v_self->mesh.elementNeighborsArray;
3480 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
3481 __PYX_ERR(1, 37, __pyx_L1_error)
3483 __pyx_t_3 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
3484 __pyx_t_7 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nElements_global), ((Py_ssize_t)__pyx_v_self->mesh.nElementBoundaries_element));
3485 if (unlikely(!__pyx_t_3 || !__pyx_t_7 || !PyBytes_AsString(__pyx_t_3))) __PYX_ERR(1, 37, __pyx_L1_error)
3486 __Pyx_GOTREF(__pyx_t_3);
3487 __Pyx_GOTREF(__pyx_t_7);
3488 __pyx_t_6 = __pyx_array_new(__pyx_t_7,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_3), (
char *)
"c", (
char *) __pyx_t_5);
3489 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 37, __pyx_L1_error)
3490 __Pyx_GOTREF(__pyx_t_6);
3491 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3492 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3494 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
3495 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
3496 if (likely(__pyx_t_3)) {
3497 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
3498 __Pyx_INCREF(__pyx_t_3);
3499 __Pyx_INCREF(
function);
3500 __Pyx_DECREF_SET(__pyx_t_2,
function);
3503 __pyx_t_4 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_2, ((PyObject *)__pyx_t_6));
3504 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
3505 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
3506 if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 37, __pyx_L1_error)
3507 __Pyx_GOTREF(__pyx_t_4);
3508 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3509 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 37, __pyx_L1_error)
3510 __Pyx_GIVEREF(__pyx_t_4);
3511 __Pyx_GOTREF(__pyx_v_self->elementNeighborsArray);
3512 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementNeighborsArray));
3513 __pyx_v_self->elementNeighborsArray = ((PyArrayObject *)__pyx_t_4);
3523 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 38, __pyx_L1_error)
3524 __Pyx_GOTREF(__pyx_t_2);
3525 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 38, __pyx_L1_error)
3526 __Pyx_GOTREF(__pyx_t_3);
3527 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3528 __pyx_t_5 = __pyx_v_self->mesh.elementBoundariesArray;
3530 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
3531 __PYX_ERR(1, 38, __pyx_L1_error)
3533 __pyx_t_7 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
3534 __pyx_t_2 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nElements_global), ((Py_ssize_t)__pyx_v_self->mesh.nElementBoundaries_element));
3535 if (unlikely(!__pyx_t_7 || !__pyx_t_2 || !PyBytes_AsString(__pyx_t_7))) __PYX_ERR(1, 38, __pyx_L1_error)
3536 __Pyx_GOTREF(__pyx_t_7);
3537 __Pyx_GOTREF(__pyx_t_2);
3538 __pyx_t_6 = __pyx_array_new(__pyx_t_2,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_7), (
char *)
"c", (
char *) __pyx_t_5);
3539 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 38, __pyx_L1_error)
3540 __Pyx_GOTREF(__pyx_t_6);
3541 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3542 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3544 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
3545 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3);
3546 if (likely(__pyx_t_7)) {
3547 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
3548 __Pyx_INCREF(__pyx_t_7);
3549 __Pyx_INCREF(
function);
3550 __Pyx_DECREF_SET(__pyx_t_3,
function);
3553 __pyx_t_4 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_7, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_t_6));
3554 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
3555 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
3556 if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 38, __pyx_L1_error)
3557 __Pyx_GOTREF(__pyx_t_4);
3558 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3559 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 38, __pyx_L1_error)
3560 __Pyx_GIVEREF(__pyx_t_4);
3561 __Pyx_GOTREF(__pyx_v_self->elementBoundariesArray);
3562 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundariesArray));
3563 __pyx_v_self->elementBoundariesArray = ((PyArrayObject *)__pyx_t_4);
3573 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 39, __pyx_L1_error)
3574 __Pyx_GOTREF(__pyx_t_3);
3575 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 39, __pyx_L1_error)
3576 __Pyx_GOTREF(__pyx_t_7);
3577 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3578 __pyx_t_5 = __pyx_v_self->mesh.elementBoundaryNodesArray;
3580 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
3581 __PYX_ERR(1, 39, __pyx_L1_error)
3583 __pyx_t_2 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
3584 __pyx_t_3 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nElementBoundaries_global), ((Py_ssize_t)__pyx_v_self->mesh.nNodes_elementBoundary));
3585 if (unlikely(!__pyx_t_2 || !__pyx_t_3 || !PyBytes_AsString(__pyx_t_2))) __PYX_ERR(1, 39, __pyx_L1_error)
3586 __Pyx_GOTREF(__pyx_t_2);
3587 __Pyx_GOTREF(__pyx_t_3);
3588 __pyx_t_6 = __pyx_array_new(__pyx_t_3,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_2), (
char *)
"c", (
char *) __pyx_t_5);
3589 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 39, __pyx_L1_error)
3590 __Pyx_GOTREF(__pyx_t_6);
3591 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3592 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3594 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
3595 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_7);
3596 if (likely(__pyx_t_2)) {
3597 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
3598 __Pyx_INCREF(__pyx_t_2);
3599 __Pyx_INCREF(
function);
3600 __Pyx_DECREF_SET(__pyx_t_7,
function);
3603 __pyx_t_4 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_2, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, ((PyObject *)__pyx_t_6));
3604 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
3605 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
3606 if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 39, __pyx_L1_error)
3607 __Pyx_GOTREF(__pyx_t_4);
3608 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3609 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 39, __pyx_L1_error)
3610 __Pyx_GIVEREF(__pyx_t_4);
3611 __Pyx_GOTREF(__pyx_v_self->elementBoundaryNodesArray);
3612 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryNodesArray));
3613 __pyx_v_self->elementBoundaryNodesArray = ((PyArrayObject *)__pyx_t_4);
3623 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 40, __pyx_L1_error)
3624 __Pyx_GOTREF(__pyx_t_7);
3625 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 40, __pyx_L1_error)
3626 __Pyx_GOTREF(__pyx_t_2);
3627 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3628 __pyx_t_5 = __pyx_v_self->mesh.elementBoundaryElementsArray;
3630 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
3631 __PYX_ERR(1, 40, __pyx_L1_error)
3633 __pyx_t_3 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
3634 __pyx_t_7 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nElementBoundaries_global), ((Py_ssize_t)2));
3635 if (unlikely(!__pyx_t_3 || !__pyx_t_7 || !PyBytes_AsString(__pyx_t_3))) __PYX_ERR(1, 40, __pyx_L1_error)
3636 __Pyx_GOTREF(__pyx_t_3);
3637 __Pyx_GOTREF(__pyx_t_7);
3638 __pyx_t_6 = __pyx_array_new(__pyx_t_7,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_3), (
char *)
"c", (
char *) __pyx_t_5);
3639 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 40, __pyx_L1_error)
3640 __Pyx_GOTREF(__pyx_t_6);
3641 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3642 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3644 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
3645 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
3646 if (likely(__pyx_t_3)) {
3647 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
3648 __Pyx_INCREF(__pyx_t_3);
3649 __Pyx_INCREF(
function);
3650 __Pyx_DECREF_SET(__pyx_t_2,
function);
3653 __pyx_t_4 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_2, ((PyObject *)__pyx_t_6));
3654 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
3655 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
3656 if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 40, __pyx_L1_error)
3657 __Pyx_GOTREF(__pyx_t_4);
3658 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3659 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 40, __pyx_L1_error)
3660 __Pyx_GIVEREF(__pyx_t_4);
3661 __Pyx_GOTREF(__pyx_v_self->elementBoundaryElementsArray);
3662 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryElementsArray));
3663 __pyx_v_self->elementBoundaryElementsArray = ((PyArrayObject *)__pyx_t_4);
3673 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 41, __pyx_L1_error)
3674 __Pyx_GOTREF(__pyx_t_2);
3675 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 41, __pyx_L1_error)
3676 __Pyx_GOTREF(__pyx_t_3);
3677 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3678 __pyx_t_5 = __pyx_v_self->mesh.elementBoundaryLocalElementBoundariesArray;
3680 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
3681 __PYX_ERR(1, 41, __pyx_L1_error)
3683 __pyx_t_7 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
3684 __pyx_t_2 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nElementBoundaries_global), ((Py_ssize_t)2));
3685 if (unlikely(!__pyx_t_7 || !__pyx_t_2 || !PyBytes_AsString(__pyx_t_7))) __PYX_ERR(1, 41, __pyx_L1_error)
3686 __Pyx_GOTREF(__pyx_t_7);
3687 __Pyx_GOTREF(__pyx_t_2);
3688 __pyx_t_6 = __pyx_array_new(__pyx_t_2,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_7), (
char *)
"c", (
char *) __pyx_t_5);
3689 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 41, __pyx_L1_error)
3690 __Pyx_GOTREF(__pyx_t_6);
3691 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3692 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3694 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
3695 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_3);
3696 if (likely(__pyx_t_7)) {
3697 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
3698 __Pyx_INCREF(__pyx_t_7);
3699 __Pyx_INCREF(
function);
3700 __Pyx_DECREF_SET(__pyx_t_3,
function);
3703 __pyx_t_4 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_7, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_t_6));
3704 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
3705 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
3706 if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 41, __pyx_L1_error)
3707 __Pyx_GOTREF(__pyx_t_4);
3708 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3709 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 41, __pyx_L1_error)
3710 __Pyx_GIVEREF(__pyx_t_4);
3711 __Pyx_GOTREF(__pyx_v_self->elementBoundaryLocalElementBoundariesArray);
3712 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryLocalElementBoundariesArray));
3713 __pyx_v_self->elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)__pyx_t_4);
3723 __pyx_t_8 = (__pyx_v_self->mesh.nInteriorElementBoundaries_global != 0);
3733 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 43, __pyx_L1_error)
3734 __Pyx_GOTREF(__pyx_t_3);
3735 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 43, __pyx_L1_error)
3736 __Pyx_GOTREF(__pyx_t_7);
3737 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3738 __pyx_t_5 = __pyx_v_self->mesh.interiorElementBoundariesArray;
3740 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
3741 __PYX_ERR(1, 43, __pyx_L1_error)
3743 __pyx_t_2 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
3744 __pyx_t_3 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nInteriorElementBoundaries_global));
3745 if (unlikely(!__pyx_t_2 || !__pyx_t_3 || !PyBytes_AsString(__pyx_t_2))) __PYX_ERR(1, 43, __pyx_L1_error)
3746 __Pyx_GOTREF(__pyx_t_2);
3747 __Pyx_GOTREF(__pyx_t_3);
3748 __pyx_t_6 = __pyx_array_new(__pyx_t_3,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_2), (
char *)
"c", (
char *) __pyx_t_5);
3749 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 43, __pyx_L1_error)
3750 __Pyx_GOTREF(__pyx_t_6);
3751 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3752 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3754 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
3755 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_7);
3756 if (likely(__pyx_t_2)) {
3757 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
3758 __Pyx_INCREF(__pyx_t_2);
3759 __Pyx_INCREF(
function);
3760 __Pyx_DECREF_SET(__pyx_t_7,
function);
3763 __pyx_t_4 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_2, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, ((PyObject *)__pyx_t_6));
3764 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
3765 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
3766 if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 43, __pyx_L1_error)
3767 __Pyx_GOTREF(__pyx_t_4);
3768 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3769 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 43, __pyx_L1_error)
3770 __Pyx_GIVEREF(__pyx_t_4);
3771 __Pyx_GOTREF(__pyx_v_self->interiorElementBoundariesArray);
3772 __Pyx_DECREF(((PyObject *)__pyx_v_self->interiorElementBoundariesArray));
3773 __pyx_v_self->interiorElementBoundariesArray = ((PyArrayObject *)__pyx_t_4);
3794 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 45, __pyx_L1_error)
3795 __Pyx_GOTREF(__pyx_t_4);
3796 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_empty);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 45, __pyx_L1_error)
3797 __Pyx_GOTREF(__pyx_t_7);
3798 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3799 __pyx_t_4 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 45, __pyx_L1_error)
3800 __Pyx_GOTREF(__pyx_t_4);
3801 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 45, __pyx_L1_error)
3802 __Pyx_GOTREF(__pyx_t_2);
3803 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_int32);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 45, __pyx_L1_error)
3804 __Pyx_GOTREF(__pyx_t_3);
3805 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3806 if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_dtype, __pyx_t_3) < 0) __PYX_ERR(1, 45, __pyx_L1_error)
3807 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
3808 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple_, __pyx_t_4);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 45, __pyx_L1_error)
3809 __Pyx_GOTREF(__pyx_t_3);
3810 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3811 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3812 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 45, __pyx_L1_error)
3813 __Pyx_GIVEREF(__pyx_t_3);
3814 __Pyx_GOTREF(__pyx_v_self->interiorElementBoundariesArray);
3815 __Pyx_DECREF(((PyObject *)__pyx_v_self->interiorElementBoundariesArray));
3816 __pyx_v_self->interiorElementBoundariesArray = ((PyArrayObject *)__pyx_t_3);
3828 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 46, __pyx_L1_error)
3829 __Pyx_GOTREF(__pyx_t_4);
3830 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 46, __pyx_L1_error)
3831 __Pyx_GOTREF(__pyx_t_7);
3832 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3833 __pyx_t_5 = __pyx_v_self->mesh.exteriorElementBoundariesArray;
3835 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
3836 __PYX_ERR(1, 46, __pyx_L1_error)
3838 __pyx_t_2 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
3839 __pyx_t_4 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nExteriorElementBoundaries_global));
3840 if (unlikely(!__pyx_t_2 || !__pyx_t_4 || !PyBytes_AsString(__pyx_t_2))) __PYX_ERR(1, 46, __pyx_L1_error)
3841 __Pyx_GOTREF(__pyx_t_2);
3842 __Pyx_GOTREF(__pyx_t_4);
3843 __pyx_t_6 = __pyx_array_new(__pyx_t_4,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_2), (
char *)
"c", (
char *) __pyx_t_5);
3844 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 46, __pyx_L1_error)
3845 __Pyx_GOTREF(__pyx_t_6);
3846 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3847 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3849 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
3850 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_7);
3851 if (likely(__pyx_t_2)) {
3852 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
3853 __Pyx_INCREF(__pyx_t_2);
3854 __Pyx_INCREF(
function);
3855 __Pyx_DECREF_SET(__pyx_t_7,
function);
3858 __pyx_t_3 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_2, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, ((PyObject *)__pyx_t_6));
3859 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
3860 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
3861 if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 46, __pyx_L1_error)
3862 __Pyx_GOTREF(__pyx_t_3);
3863 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3864 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 46, __pyx_L1_error)
3865 __Pyx_GIVEREF(__pyx_t_3);
3866 __Pyx_GOTREF(__pyx_v_self->exteriorElementBoundariesArray);
3867 __Pyx_DECREF(((PyObject *)__pyx_v_self->exteriorElementBoundariesArray));
3868 __pyx_v_self->exteriorElementBoundariesArray = ((PyArrayObject *)__pyx_t_3);
3878 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 47, __pyx_L1_error)
3879 __Pyx_GOTREF(__pyx_t_7);
3880 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 47, __pyx_L1_error)
3881 __Pyx_GOTREF(__pyx_t_2);
3882 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3883 __pyx_t_5 = __pyx_v_self->mesh.edgeNodesArray;
3885 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
3886 __PYX_ERR(1, 47, __pyx_L1_error)
3888 __pyx_t_4 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
3889 __pyx_t_7 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nEdges_global), ((Py_ssize_t)2));
3890 if (unlikely(!__pyx_t_4 || !__pyx_t_7 || !PyBytes_AsString(__pyx_t_4))) __PYX_ERR(1, 47, __pyx_L1_error)
3891 __Pyx_GOTREF(__pyx_t_4);
3892 __Pyx_GOTREF(__pyx_t_7);
3893 __pyx_t_6 = __pyx_array_new(__pyx_t_7,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_4), (
char *)
"c", (
char *) __pyx_t_5);
3894 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 47, __pyx_L1_error)
3895 __Pyx_GOTREF(__pyx_t_6);
3896 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3897 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3899 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
3900 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
3901 if (likely(__pyx_t_4)) {
3902 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
3903 __Pyx_INCREF(__pyx_t_4);
3904 __Pyx_INCREF(
function);
3905 __Pyx_DECREF_SET(__pyx_t_2,
function);
3908 __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_2, ((PyObject *)__pyx_t_6));
3909 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
3910 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
3911 if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 47, __pyx_L1_error)
3912 __Pyx_GOTREF(__pyx_t_3);
3913 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3914 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 47, __pyx_L1_error)
3915 __Pyx_GIVEREF(__pyx_t_3);
3916 __Pyx_GOTREF(__pyx_v_self->edgeNodesArray);
3917 __Pyx_DECREF(((PyObject *)__pyx_v_self->edgeNodesArray));
3918 __pyx_v_self->edgeNodesArray = ((PyArrayObject *)__pyx_t_3);
3928 __pyx_t_8 = ((__pyx_v_self->mesh.nodeStarOffsets != NULL) != 0);
3938 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 49, __pyx_L1_error)
3939 __Pyx_GOTREF(__pyx_t_2);
3940 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 49, __pyx_L1_error)
3941 __Pyx_GOTREF(__pyx_t_4);
3942 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3943 __pyx_t_5 = __pyx_v_self->mesh.nodeStarArray;
3945 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
3946 __PYX_ERR(1, 49, __pyx_L1_error)
3948 __pyx_t_7 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
3949 __pyx_t_2 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)(__pyx_v_self->mesh.nodeStarOffsets[__pyx_v_self->mesh.nNodes_global])));
3950 if (unlikely(!__pyx_t_7 || !__pyx_t_2 || !PyBytes_AsString(__pyx_t_7))) __PYX_ERR(1, 49, __pyx_L1_error)
3951 __Pyx_GOTREF(__pyx_t_7);
3952 __Pyx_GOTREF(__pyx_t_2);
3953 __pyx_t_6 = __pyx_array_new(__pyx_t_2,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_7), (
char *)
"c", (
char *) __pyx_t_5);
3954 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 49, __pyx_L1_error)
3955 __Pyx_GOTREF(__pyx_t_6);
3956 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
3957 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
3959 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
3960 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4);
3961 if (likely(__pyx_t_7)) {
3962 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
3963 __Pyx_INCREF(__pyx_t_7);
3964 __Pyx_INCREF(
function);
3965 __Pyx_DECREF_SET(__pyx_t_4,
function);
3968 __pyx_t_3 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_7, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_4, ((PyObject *)__pyx_t_6));
3969 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
3970 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
3971 if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 49, __pyx_L1_error)
3972 __Pyx_GOTREF(__pyx_t_3);
3973 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
3974 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 49, __pyx_L1_error)
3975 __Pyx_GIVEREF(__pyx_t_3);
3976 __Pyx_GOTREF(__pyx_v_self->nodeStarArray);
3977 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeStarArray));
3978 __pyx_v_self->nodeStarArray = ((PyArrayObject *)__pyx_t_3);
3999 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 51, __pyx_L1_error)
4000 __Pyx_GOTREF(__pyx_t_3);
4001 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 51, __pyx_L1_error)
4002 __Pyx_GOTREF(__pyx_t_4);
4003 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4004 __pyx_t_3 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 51, __pyx_L1_error)
4005 __Pyx_GOTREF(__pyx_t_3);
4006 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 51, __pyx_L1_error)
4007 __Pyx_GOTREF(__pyx_t_7);
4008 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_int32);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 51, __pyx_L1_error)
4009 __Pyx_GOTREF(__pyx_t_2);
4010 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
4011 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtype, __pyx_t_2) < 0) __PYX_ERR(1, 51, __pyx_L1_error)
4012 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4013 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_tuple_, __pyx_t_3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 51, __pyx_L1_error)
4014 __Pyx_GOTREF(__pyx_t_2);
4015 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4016 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4017 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 51, __pyx_L1_error)
4018 __Pyx_GIVEREF(__pyx_t_2);
4019 __Pyx_GOTREF(__pyx_v_self->nodeStarArray);
4020 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeStarArray));
4021 __pyx_v_self->nodeStarArray = ((PyArrayObject *)__pyx_t_2);
4033 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 52, __pyx_L1_error)
4034 __Pyx_GOTREF(__pyx_t_3);
4035 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 52, __pyx_L1_error)
4036 __Pyx_GOTREF(__pyx_t_4);
4037 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4038 __pyx_t_5 = __pyx_v_self->mesh.nodeStarOffsets;
4040 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
4041 __PYX_ERR(1, 52, __pyx_L1_error)
4043 __pyx_t_7 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
4044 __pyx_t_3 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)(__pyx_v_self->mesh.nNodes_global + 1)));
4045 if (unlikely(!__pyx_t_7 || !__pyx_t_3 || !PyBytes_AsString(__pyx_t_7))) __PYX_ERR(1, 52, __pyx_L1_error)
4046 __Pyx_GOTREF(__pyx_t_7);
4047 __Pyx_GOTREF(__pyx_t_3);
4048 __pyx_t_6 = __pyx_array_new(__pyx_t_3,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_7), (
char *)
"c", (
char *) __pyx_t_5);
4049 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 52, __pyx_L1_error)
4050 __Pyx_GOTREF(__pyx_t_6);
4051 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4052 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
4054 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
4055 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4);
4056 if (likely(__pyx_t_7)) {
4057 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
4058 __Pyx_INCREF(__pyx_t_7);
4059 __Pyx_INCREF(
function);
4060 __Pyx_DECREF_SET(__pyx_t_4,
function);
4063 __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_7, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_4, ((PyObject *)__pyx_t_6));
4064 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
4065 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
4066 if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 52, __pyx_L1_error)
4067 __Pyx_GOTREF(__pyx_t_2);
4068 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4069 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 52, __pyx_L1_error)
4070 __Pyx_GIVEREF(__pyx_t_2);
4071 __Pyx_GOTREF(__pyx_v_self->nodeStarOffsets);
4072 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeStarOffsets));
4073 __pyx_v_self->nodeStarOffsets = ((PyArrayObject *)__pyx_t_2);
4083 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 53, __pyx_L1_error)
4084 __Pyx_GOTREF(__pyx_t_4);
4085 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 53, __pyx_L1_error)
4086 __Pyx_GOTREF(__pyx_t_7);
4087 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4088 __pyx_t_5 = __pyx_v_self->mesh.elementMaterialTypes;
4090 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
4091 __PYX_ERR(1, 53, __pyx_L1_error)
4093 __pyx_t_3 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
4094 __pyx_t_4 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nElements_global));
4095 if (unlikely(!__pyx_t_3 || !__pyx_t_4 || !PyBytes_AsString(__pyx_t_3))) __PYX_ERR(1, 53, __pyx_L1_error)
4096 __Pyx_GOTREF(__pyx_t_3);
4097 __Pyx_GOTREF(__pyx_t_4);
4098 __pyx_t_6 = __pyx_array_new(__pyx_t_4,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_3), (
char *)
"c", (
char *) __pyx_t_5);
4099 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 53, __pyx_L1_error)
4100 __Pyx_GOTREF(__pyx_t_6);
4101 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4102 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4104 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
4105 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
4106 if (likely(__pyx_t_3)) {
4107 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
4108 __Pyx_INCREF(__pyx_t_3);
4109 __Pyx_INCREF(
function);
4110 __Pyx_DECREF_SET(__pyx_t_7,
function);
4113 __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_3, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, ((PyObject *)__pyx_t_6));
4114 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
4115 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
4116 if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 53, __pyx_L1_error)
4117 __Pyx_GOTREF(__pyx_t_2);
4118 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
4119 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 53, __pyx_L1_error)
4120 __Pyx_GIVEREF(__pyx_t_2);
4121 __Pyx_GOTREF(__pyx_v_self->elementMaterialTypes);
4122 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementMaterialTypes));
4123 __pyx_v_self->elementMaterialTypes = ((PyArrayObject *)__pyx_t_2);
4133 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 54, __pyx_L1_error)
4134 __Pyx_GOTREF(__pyx_t_7);
4135 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 54, __pyx_L1_error)
4136 __Pyx_GOTREF(__pyx_t_3);
4137 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
4138 __pyx_t_5 = __pyx_v_self->mesh.elementBoundaryMaterialTypes;
4140 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
4141 __PYX_ERR(1, 54, __pyx_L1_error)
4143 __pyx_t_4 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
4144 __pyx_t_7 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nElementBoundaries_global));
4145 if (unlikely(!__pyx_t_4 || !__pyx_t_7 || !PyBytes_AsString(__pyx_t_4))) __PYX_ERR(1, 54, __pyx_L1_error)
4146 __Pyx_GOTREF(__pyx_t_4);
4147 __Pyx_GOTREF(__pyx_t_7);
4148 __pyx_t_6 = __pyx_array_new(__pyx_t_7,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_4), (
char *)
"c", (
char *) __pyx_t_5);
4149 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 54, __pyx_L1_error)
4150 __Pyx_GOTREF(__pyx_t_6);
4151 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
4152 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4154 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
4155 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
4156 if (likely(__pyx_t_4)) {
4157 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
4158 __Pyx_INCREF(__pyx_t_4);
4159 __Pyx_INCREF(
function);
4160 __Pyx_DECREF_SET(__pyx_t_3,
function);
4163 __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_t_6));
4164 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
4165 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
4166 if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 54, __pyx_L1_error)
4167 __Pyx_GOTREF(__pyx_t_2);
4168 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4169 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 54, __pyx_L1_error)
4170 __Pyx_GIVEREF(__pyx_t_2);
4171 __Pyx_GOTREF(__pyx_v_self->elementBoundaryMaterialTypes);
4172 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryMaterialTypes));
4173 __pyx_v_self->elementBoundaryMaterialTypes = ((PyArrayObject *)__pyx_t_2);
4183 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 55, __pyx_L1_error)
4184 __Pyx_GOTREF(__pyx_t_3);
4185 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 55, __pyx_L1_error)
4186 __Pyx_GOTREF(__pyx_t_4);
4187 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4188 __pyx_t_5 = __pyx_v_self->mesh.nodeMaterialTypes;
4190 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
4191 __PYX_ERR(1, 55, __pyx_L1_error)
4193 __pyx_t_7 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
4194 __pyx_t_3 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nNodes_global));
4195 if (unlikely(!__pyx_t_7 || !__pyx_t_3 || !PyBytes_AsString(__pyx_t_7))) __PYX_ERR(1, 55, __pyx_L1_error)
4196 __Pyx_GOTREF(__pyx_t_7);
4197 __Pyx_GOTREF(__pyx_t_3);
4198 __pyx_t_6 = __pyx_array_new(__pyx_t_3,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_7), (
char *)
"c", (
char *) __pyx_t_5);
4199 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 55, __pyx_L1_error)
4200 __Pyx_GOTREF(__pyx_t_6);
4201 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4202 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
4204 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
4205 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_4);
4206 if (likely(__pyx_t_7)) {
4207 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
4208 __Pyx_INCREF(__pyx_t_7);
4209 __Pyx_INCREF(
function);
4210 __Pyx_DECREF_SET(__pyx_t_4,
function);
4213 __pyx_t_2 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_7, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_4, ((PyObject *)__pyx_t_6));
4214 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
4215 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
4216 if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 55, __pyx_L1_error)
4217 __Pyx_GOTREF(__pyx_t_2);
4218 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4219 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 55, __pyx_L1_error)
4220 __Pyx_GIVEREF(__pyx_t_2);
4221 __Pyx_GOTREF(__pyx_v_self->nodeMaterialTypes);
4222 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeMaterialTypes));
4223 __pyx_v_self->nodeMaterialTypes = ((PyArrayObject *)__pyx_t_2);
4233 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 56, __pyx_L1_error)
4234 __Pyx_GOTREF(__pyx_t_4);
4235 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 56, __pyx_L1_error)
4236 __Pyx_GOTREF(__pyx_t_7);
4237 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4238 __pyx_t_9 = __pyx_v_self->mesh.nodeArray;
4240 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
4241 __PYX_ERR(1, 56, __pyx_L1_error)
4243 __pyx_t_3 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_double);
4244 __pyx_t_4 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nNodes_global), ((Py_ssize_t)3));
4245 if (unlikely(!__pyx_t_3 || !__pyx_t_4 || !PyBytes_AsString(__pyx_t_3))) __PYX_ERR(1, 56, __pyx_L1_error)
4246 __Pyx_GOTREF(__pyx_t_3);
4247 __Pyx_GOTREF(__pyx_t_4);
4248 __pyx_t_6 = __pyx_array_new(__pyx_t_4,
sizeof(
double), PyBytes_AS_STRING(__pyx_t_3), (
char *)
"c", (
char *) __pyx_t_9);
4249 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 56, __pyx_L1_error)
4250 __Pyx_GOTREF(__pyx_t_6);
4251 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4252 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4254 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_7))) {
4255 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
4256 if (likely(__pyx_t_3)) {
4257 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
4258 __Pyx_INCREF(__pyx_t_3);
4259 __Pyx_INCREF(
function);
4260 __Pyx_DECREF_SET(__pyx_t_7,
function);
4263 __pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_3, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_7, ((PyObject *)__pyx_t_6));
4264 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
4265 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
4266 if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 56, __pyx_L1_error)
4267 __Pyx_GOTREF(__pyx_t_2);
4268 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
4269 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 56, __pyx_L1_error)
4270 __Pyx_GIVEREF(__pyx_t_2);
4271 __Pyx_GOTREF(__pyx_v_self->nodeArray);
4272 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeArray));
4273 __pyx_v_self->nodeArray = ((PyArrayObject *)__pyx_t_2);
4283 __pyx_t_1 = __pyx_v_self->mesh.nx;
4284 __pyx_v_self->nx = __pyx_t_1;
4293 __pyx_t_1 = __pyx_v_self->mesh.ny;
4294 __pyx_v_self->ny = __pyx_t_1;
4303 __pyx_t_1 = __pyx_v_self->mesh.nz;
4304 __pyx_v_self->nz = __pyx_t_1;
4313 __pyx_t_1 = __pyx_v_self->mesh.px;
4314 __pyx_v_self->px = __pyx_t_1;
4323 __pyx_t_1 = __pyx_v_self->mesh.py;
4324 __pyx_v_self->py = __pyx_t_1;
4333 __pyx_t_1 = __pyx_v_self->mesh.pz;
4334 __pyx_v_self->pz = __pyx_t_1;
4343 __pyx_t_8 = ((__pyx_v_self->mesh.elementIJK != NULL) != 0);
4353 __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_np);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 64, __pyx_L1_error)
4354 __Pyx_GOTREF(__pyx_t_7);
4355 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 64, __pyx_L1_error)
4356 __Pyx_GOTREF(__pyx_t_3);
4357 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
4358 __pyx_t_5 = __pyx_v_self->mesh.elementIJK;
4360 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
4361 __PYX_ERR(1, 64, __pyx_L1_error)
4363 __pyx_t_4 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
4364 __pyx_t_7 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)(__pyx_v_self->mesh.nElements_global * 3)));
4365 if (unlikely(!__pyx_t_4 || !__pyx_t_7 || !PyBytes_AsString(__pyx_t_4))) __PYX_ERR(1, 64, __pyx_L1_error)
4366 __Pyx_GOTREF(__pyx_t_4);
4367 __Pyx_GOTREF(__pyx_t_7);
4368 __pyx_t_6 = __pyx_array_new(__pyx_t_7,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_4), (
char *)
"c", (
char *) __pyx_t_5);
4369 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 64, __pyx_L1_error)
4370 __Pyx_GOTREF(__pyx_t_6);
4371 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
4372 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4374 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
4375 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
4376 if (likely(__pyx_t_4)) {
4377 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
4378 __Pyx_INCREF(__pyx_t_4);
4379 __Pyx_INCREF(
function);
4380 __Pyx_DECREF_SET(__pyx_t_3,
function);
4383 __pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_t_6));
4384 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
4385 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
4386 if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 64, __pyx_L1_error)
4387 __Pyx_GOTREF(__pyx_t_2);
4388 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4389 if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 64, __pyx_L1_error)
4390 __Pyx_GIVEREF(__pyx_t_2);
4391 __Pyx_GOTREF(__pyx_v_self->elementIJK);
4392 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementIJK));
4393 __pyx_v_self->elementIJK = ((PyArrayObject *)__pyx_t_2);
4414 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 66, __pyx_L1_error)
4415 __Pyx_GOTREF(__pyx_t_2);
4416 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_empty);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 66, __pyx_L1_error)
4417 __Pyx_GOTREF(__pyx_t_3);
4418 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4419 __pyx_t_2 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 66, __pyx_L1_error)
4420 __Pyx_GOTREF(__pyx_t_2);
4421 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 66, __pyx_L1_error)
4422 __Pyx_GOTREF(__pyx_t_4);
4423 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_int32);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 66, __pyx_L1_error)
4424 __Pyx_GOTREF(__pyx_t_7);
4425 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4426 if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_dtype, __pyx_t_7) < 0) __PYX_ERR(1, 66, __pyx_L1_error)
4427 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
4428 __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple_, __pyx_t_2);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 66, __pyx_L1_error)
4429 __Pyx_GOTREF(__pyx_t_7);
4430 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4431 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4432 if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 66, __pyx_L1_error)
4433 __Pyx_GIVEREF(__pyx_t_7);
4434 __Pyx_GOTREF(__pyx_v_self->elementIJK);
4435 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementIJK));
4436 __pyx_v_self->elementIJK = ((PyArrayObject *)__pyx_t_7);
4448 __pyx_t_8 = ((__pyx_v_self->mesh.weights != NULL) != 0);
4458 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 68, __pyx_L1_error)
4459 __Pyx_GOTREF(__pyx_t_2);
4460 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 68, __pyx_L1_error)
4461 __Pyx_GOTREF(__pyx_t_3);
4462 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4463 __pyx_t_9 = __pyx_v_self->mesh.weights;
4465 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
4466 __PYX_ERR(1, 68, __pyx_L1_error)
4468 __pyx_t_4 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_double);
4469 __pyx_t_2 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nElements_global));
4470 if (unlikely(!__pyx_t_4 || !__pyx_t_2 || !PyBytes_AsString(__pyx_t_4))) __PYX_ERR(1, 68, __pyx_L1_error)
4471 __Pyx_GOTREF(__pyx_t_4);
4472 __Pyx_GOTREF(__pyx_t_2);
4473 __pyx_t_6 = __pyx_array_new(__pyx_t_2,
sizeof(
double), PyBytes_AS_STRING(__pyx_t_4), (
char *)
"c", (
char *) __pyx_t_9);
4474 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 68, __pyx_L1_error)
4475 __Pyx_GOTREF(__pyx_t_6);
4476 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4477 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4479 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
4480 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
4481 if (likely(__pyx_t_4)) {
4482 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
4483 __Pyx_INCREF(__pyx_t_4);
4484 __Pyx_INCREF(
function);
4485 __Pyx_DECREF_SET(__pyx_t_3,
function);
4488 __pyx_t_7 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_t_6));
4489 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
4490 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
4491 if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 68, __pyx_L1_error)
4492 __Pyx_GOTREF(__pyx_t_7);
4493 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4494 if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 68, __pyx_L1_error)
4495 __Pyx_GIVEREF(__pyx_t_7);
4496 __Pyx_GOTREF(__pyx_v_self->weights);
4497 __Pyx_DECREF(((PyObject *)__pyx_v_self->weights));
4498 __pyx_v_self->weights = ((PyArrayObject *)__pyx_t_7);
4519 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 70, __pyx_L1_error)
4520 __Pyx_GOTREF(__pyx_t_3);
4521 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 70, __pyx_L1_error)
4522 __Pyx_GOTREF(__pyx_t_4);
4523 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4525 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
4526 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
4527 if (likely(__pyx_t_3)) {
4528 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
4529 __Pyx_INCREF(__pyx_t_3);
4530 __Pyx_INCREF(
function);
4531 __Pyx_DECREF_SET(__pyx_t_4,
function);
4534 __pyx_t_7 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_3, __pyx_int_0) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_int_0);
4535 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
4536 if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 70, __pyx_L1_error)
4537 __Pyx_GOTREF(__pyx_t_7);
4538 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4539 if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 70, __pyx_L1_error)
4540 __Pyx_GIVEREF(__pyx_t_7);
4541 __Pyx_GOTREF(__pyx_v_self->weights);
4542 __Pyx_DECREF(((PyObject *)__pyx_v_self->weights));
4543 __pyx_v_self->weights = ((PyArrayObject *)__pyx_t_7);
4555 __pyx_t_8 = ((__pyx_v_self->mesh.U_KNOT != NULL) != 0);
4565 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 72, __pyx_L1_error)
4566 __Pyx_GOTREF(__pyx_t_4);
4567 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 72, __pyx_L1_error)
4568 __Pyx_GOTREF(__pyx_t_3);
4569 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4570 __pyx_t_9 = __pyx_v_self->mesh.U_KNOT;
4572 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
4573 __PYX_ERR(1, 72, __pyx_L1_error)
4575 __pyx_t_2 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_double);
4576 __pyx_t_4 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)((__pyx_v_self->mesh.nx + __pyx_v_self->mesh.px) + 1)));
4577 if (unlikely(!__pyx_t_2 || !__pyx_t_4 || !PyBytes_AsString(__pyx_t_2))) __PYX_ERR(1, 72, __pyx_L1_error)
4578 __Pyx_GOTREF(__pyx_t_2);
4579 __Pyx_GOTREF(__pyx_t_4);
4580 __pyx_t_6 = __pyx_array_new(__pyx_t_4,
sizeof(
double), PyBytes_AS_STRING(__pyx_t_2), (
char *)
"c", (
char *) __pyx_t_9);
4581 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 72, __pyx_L1_error)
4582 __Pyx_GOTREF(__pyx_t_6);
4583 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4584 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4586 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
4587 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
4588 if (likely(__pyx_t_2)) {
4589 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
4590 __Pyx_INCREF(__pyx_t_2);
4591 __Pyx_INCREF(
function);
4592 __Pyx_DECREF_SET(__pyx_t_3,
function);
4595 __pyx_t_7 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_t_6));
4596 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
4597 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
4598 if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 72, __pyx_L1_error)
4599 __Pyx_GOTREF(__pyx_t_7);
4600 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4601 if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 72, __pyx_L1_error)
4602 __Pyx_GIVEREF(__pyx_t_7);
4603 __Pyx_GOTREF(__pyx_v_self->U_KNOT);
4604 __Pyx_DECREF(((PyObject *)__pyx_v_self->U_KNOT));
4605 __pyx_v_self->U_KNOT = ((PyArrayObject *)__pyx_t_7);
4626 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 74, __pyx_L1_error)
4627 __Pyx_GOTREF(__pyx_t_3);
4628 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 74, __pyx_L1_error)
4629 __Pyx_GOTREF(__pyx_t_2);
4630 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4632 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
4633 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
4634 if (likely(__pyx_t_3)) {
4635 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
4636 __Pyx_INCREF(__pyx_t_3);
4637 __Pyx_INCREF(
function);
4638 __Pyx_DECREF_SET(__pyx_t_2,
function);
4641 __pyx_t_7 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_int_0) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_int_0);
4642 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
4643 if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 74, __pyx_L1_error)
4644 __Pyx_GOTREF(__pyx_t_7);
4645 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4646 if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 74, __pyx_L1_error)
4647 __Pyx_GIVEREF(__pyx_t_7);
4648 __Pyx_GOTREF(__pyx_v_self->U_KNOT);
4649 __Pyx_DECREF(((PyObject *)__pyx_v_self->U_KNOT));
4650 __pyx_v_self->U_KNOT = ((PyArrayObject *)__pyx_t_7);
4662 __pyx_t_8 = ((__pyx_v_self->mesh.V_KNOT != NULL) != 0);
4672 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 76, __pyx_L1_error)
4673 __Pyx_GOTREF(__pyx_t_2);
4674 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 76, __pyx_L1_error)
4675 __Pyx_GOTREF(__pyx_t_3);
4676 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4677 __pyx_t_9 = __pyx_v_self->mesh.V_KNOT;
4679 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
4680 __PYX_ERR(1, 76, __pyx_L1_error)
4682 __pyx_t_4 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_double);
4683 __pyx_t_2 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)((__pyx_v_self->mesh.ny + __pyx_v_self->mesh.py) + 1)));
4684 if (unlikely(!__pyx_t_4 || !__pyx_t_2 || !PyBytes_AsString(__pyx_t_4))) __PYX_ERR(1, 76, __pyx_L1_error)
4685 __Pyx_GOTREF(__pyx_t_4);
4686 __Pyx_GOTREF(__pyx_t_2);
4687 __pyx_t_6 = __pyx_array_new(__pyx_t_2,
sizeof(
double), PyBytes_AS_STRING(__pyx_t_4), (
char *)
"c", (
char *) __pyx_t_9);
4688 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 76, __pyx_L1_error)
4689 __Pyx_GOTREF(__pyx_t_6);
4690 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4691 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4693 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
4694 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
4695 if (likely(__pyx_t_4)) {
4696 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
4697 __Pyx_INCREF(__pyx_t_4);
4698 __Pyx_INCREF(
function);
4699 __Pyx_DECREF_SET(__pyx_t_3,
function);
4702 __pyx_t_7 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_t_6));
4703 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
4704 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
4705 if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 76, __pyx_L1_error)
4706 __Pyx_GOTREF(__pyx_t_7);
4707 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4708 if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 76, __pyx_L1_error)
4709 __Pyx_GIVEREF(__pyx_t_7);
4710 __Pyx_GOTREF(__pyx_v_self->V_KNOT);
4711 __Pyx_DECREF(((PyObject *)__pyx_v_self->V_KNOT));
4712 __pyx_v_self->V_KNOT = ((PyArrayObject *)__pyx_t_7);
4733 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 78, __pyx_L1_error)
4734 __Pyx_GOTREF(__pyx_t_3);
4735 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 78, __pyx_L1_error)
4736 __Pyx_GOTREF(__pyx_t_4);
4737 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4739 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
4740 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
4741 if (likely(__pyx_t_3)) {
4742 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
4743 __Pyx_INCREF(__pyx_t_3);
4744 __Pyx_INCREF(
function);
4745 __Pyx_DECREF_SET(__pyx_t_4,
function);
4748 __pyx_t_7 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_3, __pyx_int_0) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_int_0);
4749 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
4750 if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 78, __pyx_L1_error)
4751 __Pyx_GOTREF(__pyx_t_7);
4752 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4753 if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 78, __pyx_L1_error)
4754 __Pyx_GIVEREF(__pyx_t_7);
4755 __Pyx_GOTREF(__pyx_v_self->V_KNOT);
4756 __Pyx_DECREF(((PyObject *)__pyx_v_self->V_KNOT));
4757 __pyx_v_self->V_KNOT = ((PyArrayObject *)__pyx_t_7);
4769 __pyx_t_8 = ((__pyx_v_self->mesh.W_KNOT != NULL) != 0);
4779 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 80, __pyx_L1_error)
4780 __Pyx_GOTREF(__pyx_t_4);
4781 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 80, __pyx_L1_error)
4782 __Pyx_GOTREF(__pyx_t_3);
4783 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4784 __pyx_t_9 = __pyx_v_self->mesh.W_KNOT;
4786 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
4787 __PYX_ERR(1, 80, __pyx_L1_error)
4789 __pyx_t_2 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_double);
4790 __pyx_t_4 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)((__pyx_v_self->mesh.nz + __pyx_v_self->mesh.pz) + 1)));
4791 if (unlikely(!__pyx_t_2 || !__pyx_t_4 || !PyBytes_AsString(__pyx_t_2))) __PYX_ERR(1, 80, __pyx_L1_error)
4792 __Pyx_GOTREF(__pyx_t_2);
4793 __Pyx_GOTREF(__pyx_t_4);
4794 __pyx_t_6 = __pyx_array_new(__pyx_t_4,
sizeof(
double), PyBytes_AS_STRING(__pyx_t_2), (
char *)
"c", (
char *) __pyx_t_9);
4795 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 80, __pyx_L1_error)
4796 __Pyx_GOTREF(__pyx_t_6);
4797 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4798 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4800 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
4801 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
4802 if (likely(__pyx_t_2)) {
4803 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
4804 __Pyx_INCREF(__pyx_t_2);
4805 __Pyx_INCREF(
function);
4806 __Pyx_DECREF_SET(__pyx_t_3,
function);
4809 __pyx_t_7 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_t_6));
4810 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
4811 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
4812 if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 80, __pyx_L1_error)
4813 __Pyx_GOTREF(__pyx_t_7);
4814 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4815 if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 80, __pyx_L1_error)
4816 __Pyx_GIVEREF(__pyx_t_7);
4817 __Pyx_GOTREF(__pyx_v_self->W_KNOT);
4818 __Pyx_DECREF(((PyObject *)__pyx_v_self->W_KNOT));
4819 __pyx_v_self->W_KNOT = ((PyArrayObject *)__pyx_t_7);
4840 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 82, __pyx_L1_error)
4841 __Pyx_GOTREF(__pyx_t_3);
4842 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_empty);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 82, __pyx_L1_error)
4843 __Pyx_GOTREF(__pyx_t_2);
4844 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4846 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
4847 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
4848 if (likely(__pyx_t_3)) {
4849 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
4850 __Pyx_INCREF(__pyx_t_3);
4851 __Pyx_INCREF(
function);
4852 __Pyx_DECREF_SET(__pyx_t_2,
function);
4855 __pyx_t_7 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_int_0) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_int_0);
4856 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
4857 if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 82, __pyx_L1_error)
4858 __Pyx_GOTREF(__pyx_t_7);
4859 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4860 if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 82, __pyx_L1_error)
4861 __Pyx_GIVEREF(__pyx_t_7);
4862 __Pyx_GOTREF(__pyx_v_self->W_KNOT);
4863 __Pyx_DECREF(((PyObject *)__pyx_v_self->W_KNOT));
4864 __pyx_v_self->W_KNOT = ((PyArrayObject *)__pyx_t_7);
4876 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 83, __pyx_L1_error)
4877 __Pyx_GOTREF(__pyx_t_2);
4878 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 83, __pyx_L1_error)
4879 __Pyx_GOTREF(__pyx_t_3);
4880 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4881 __pyx_t_9 = __pyx_v_self->mesh.elementDiametersArray;
4883 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
4884 __PYX_ERR(1, 83, __pyx_L1_error)
4886 __pyx_t_4 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_double);
4887 __pyx_t_2 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nElements_global));
4888 if (unlikely(!__pyx_t_4 || !__pyx_t_2 || !PyBytes_AsString(__pyx_t_4))) __PYX_ERR(1, 83, __pyx_L1_error)
4889 __Pyx_GOTREF(__pyx_t_4);
4890 __Pyx_GOTREF(__pyx_t_2);
4891 __pyx_t_6 = __pyx_array_new(__pyx_t_2,
sizeof(
double), PyBytes_AS_STRING(__pyx_t_4), (
char *)
"c", (
char *) __pyx_t_9);
4892 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 83, __pyx_L1_error)
4893 __Pyx_GOTREF(__pyx_t_6);
4894 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4895 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4897 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
4898 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
4899 if (likely(__pyx_t_4)) {
4900 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
4901 __Pyx_INCREF(__pyx_t_4);
4902 __Pyx_INCREF(
function);
4903 __Pyx_DECREF_SET(__pyx_t_3,
function);
4906 __pyx_t_7 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_t_6));
4907 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
4908 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
4909 if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 83, __pyx_L1_error)
4910 __Pyx_GOTREF(__pyx_t_7);
4911 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4912 if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 83, __pyx_L1_error)
4913 __Pyx_GIVEREF(__pyx_t_7);
4914 __Pyx_GOTREF(__pyx_v_self->elementDiametersArray);
4915 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementDiametersArray));
4916 __pyx_v_self->elementDiametersArray = ((PyArrayObject *)__pyx_t_7);
4926 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 84, __pyx_L1_error)
4927 __Pyx_GOTREF(__pyx_t_3);
4928 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 84, __pyx_L1_error)
4929 __Pyx_GOTREF(__pyx_t_4);
4930 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4931 __pyx_t_9 = __pyx_v_self->mesh.elementInnerDiametersArray;
4933 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
4934 __PYX_ERR(1, 84, __pyx_L1_error)
4936 __pyx_t_2 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_double);
4937 __pyx_t_3 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nElements_global));
4938 if (unlikely(!__pyx_t_2 || !__pyx_t_3 || !PyBytes_AsString(__pyx_t_2))) __PYX_ERR(1, 84, __pyx_L1_error)
4939 __Pyx_GOTREF(__pyx_t_2);
4940 __Pyx_GOTREF(__pyx_t_3);
4941 __pyx_t_6 = __pyx_array_new(__pyx_t_3,
sizeof(
double), PyBytes_AS_STRING(__pyx_t_2), (
char *)
"c", (
char *) __pyx_t_9);
4942 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 84, __pyx_L1_error)
4943 __Pyx_GOTREF(__pyx_t_6);
4944 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4945 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4947 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
4948 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
4949 if (likely(__pyx_t_2)) {
4950 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
4951 __Pyx_INCREF(__pyx_t_2);
4952 __Pyx_INCREF(
function);
4953 __Pyx_DECREF_SET(__pyx_t_4,
function);
4956 __pyx_t_7 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_2, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_4, ((PyObject *)__pyx_t_6));
4957 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
4958 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
4959 if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 84, __pyx_L1_error)
4960 __Pyx_GOTREF(__pyx_t_7);
4961 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4962 if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 84, __pyx_L1_error)
4963 __Pyx_GIVEREF(__pyx_t_7);
4964 __Pyx_GOTREF(__pyx_v_self->elementInnerDiametersArray);
4965 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementInnerDiametersArray));
4966 __pyx_v_self->elementInnerDiametersArray = ((PyArrayObject *)__pyx_t_7);
4976 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 85, __pyx_L1_error)
4977 __Pyx_GOTREF(__pyx_t_4);
4978 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 85, __pyx_L1_error)
4979 __Pyx_GOTREF(__pyx_t_2);
4980 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4981 __pyx_t_9 = __pyx_v_self->mesh.elementBoundaryDiametersArray;
4983 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
4984 __PYX_ERR(1, 85, __pyx_L1_error)
4986 __pyx_t_3 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_double);
4987 __pyx_t_4 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nElementBoundaries_global));
4988 if (unlikely(!__pyx_t_3 || !__pyx_t_4 || !PyBytes_AsString(__pyx_t_3))) __PYX_ERR(1, 85, __pyx_L1_error)
4989 __Pyx_GOTREF(__pyx_t_3);
4990 __Pyx_GOTREF(__pyx_t_4);
4991 __pyx_t_6 = __pyx_array_new(__pyx_t_4,
sizeof(
double), PyBytes_AS_STRING(__pyx_t_3), (
char *)
"c", (
char *) __pyx_t_9);
4992 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 85, __pyx_L1_error)
4993 __Pyx_GOTREF(__pyx_t_6);
4994 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
4995 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4997 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
4998 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
4999 if (likely(__pyx_t_3)) {
5000 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
5001 __Pyx_INCREF(__pyx_t_3);
5002 __Pyx_INCREF(
function);
5003 __Pyx_DECREF_SET(__pyx_t_2,
function);
5006 __pyx_t_7 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_2, ((PyObject *)__pyx_t_6));
5007 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
5008 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
5009 if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 85, __pyx_L1_error)
5010 __Pyx_GOTREF(__pyx_t_7);
5011 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5012 if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 85, __pyx_L1_error)
5013 __Pyx_GIVEREF(__pyx_t_7);
5014 __Pyx_GOTREF(__pyx_v_self->elementBoundaryDiametersArray);
5015 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryDiametersArray));
5016 __pyx_v_self->elementBoundaryDiametersArray = ((PyArrayObject *)__pyx_t_7);
5026 __pyx_t_8 = (__pyx_v_self->mesh.elementBarycentersArray != 0);
5036 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 87, __pyx_L1_error)
5037 __Pyx_GOTREF(__pyx_t_2);
5038 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 87, __pyx_L1_error)
5039 __Pyx_GOTREF(__pyx_t_3);
5040 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5041 __pyx_t_9 = __pyx_v_self->mesh.elementBarycentersArray;
5043 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
5044 __PYX_ERR(1, 87, __pyx_L1_error)
5046 __pyx_t_4 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_double);
5047 __pyx_t_2 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nElements_global), ((Py_ssize_t)3));
5048 if (unlikely(!__pyx_t_4 || !__pyx_t_2 || !PyBytes_AsString(__pyx_t_4))) __PYX_ERR(1, 87, __pyx_L1_error)
5049 __Pyx_GOTREF(__pyx_t_4);
5050 __Pyx_GOTREF(__pyx_t_2);
5051 __pyx_t_6 = __pyx_array_new(__pyx_t_2,
sizeof(
double), PyBytes_AS_STRING(__pyx_t_4), (
char *)
"c", (
char *) __pyx_t_9);
5052 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 87, __pyx_L1_error)
5053 __Pyx_GOTREF(__pyx_t_6);
5054 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5055 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5057 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
5058 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
5059 if (likely(__pyx_t_4)) {
5060 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
5061 __Pyx_INCREF(__pyx_t_4);
5062 __Pyx_INCREF(
function);
5063 __Pyx_DECREF_SET(__pyx_t_3,
function);
5066 __pyx_t_7 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_t_6));
5067 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
5068 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
5069 if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 87, __pyx_L1_error)
5070 __Pyx_GOTREF(__pyx_t_7);
5071 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5072 if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 87, __pyx_L1_error)
5073 __Pyx_GIVEREF(__pyx_t_7);
5074 __Pyx_GOTREF(__pyx_v_self->elementBarycentersArray);
5075 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBarycentersArray));
5076 __pyx_v_self->elementBarycentersArray = ((PyArrayObject *)__pyx_t_7);
5095 __pyx_t_8 = (__pyx_v_self->mesh.elementBoundaryBarycentersArray != 0);
5105 __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 89, __pyx_L1_error)
5106 __Pyx_GOTREF(__pyx_t_3);
5107 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 89, __pyx_L1_error)
5108 __Pyx_GOTREF(__pyx_t_4);
5109 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5110 __pyx_t_9 = __pyx_v_self->mesh.elementBoundaryBarycentersArray;
5112 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
5113 __PYX_ERR(1, 89, __pyx_L1_error)
5115 __pyx_t_2 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_double);
5116 __pyx_t_3 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nElementBoundaries_global), ((Py_ssize_t)3));
5117 if (unlikely(!__pyx_t_2 || !__pyx_t_3 || !PyBytes_AsString(__pyx_t_2))) __PYX_ERR(1, 89, __pyx_L1_error)
5118 __Pyx_GOTREF(__pyx_t_2);
5119 __Pyx_GOTREF(__pyx_t_3);
5120 __pyx_t_6 = __pyx_array_new(__pyx_t_3,
sizeof(
double), PyBytes_AS_STRING(__pyx_t_2), (
char *)
"c", (
char *) __pyx_t_9);
5121 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 89, __pyx_L1_error)
5122 __Pyx_GOTREF(__pyx_t_6);
5123 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5124 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5126 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
5127 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4);
5128 if (likely(__pyx_t_2)) {
5129 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
5130 __Pyx_INCREF(__pyx_t_2);
5131 __Pyx_INCREF(
function);
5132 __Pyx_DECREF_SET(__pyx_t_4,
function);
5135 __pyx_t_7 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_2, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_4, ((PyObject *)__pyx_t_6));
5136 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
5137 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
5138 if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 89, __pyx_L1_error)
5139 __Pyx_GOTREF(__pyx_t_7);
5140 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5141 if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 89, __pyx_L1_error)
5142 __Pyx_GIVEREF(__pyx_t_7);
5143 __Pyx_GOTREF(__pyx_v_self->elementBoundaryBarycentersArray);
5144 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryBarycentersArray));
5145 __pyx_v_self->elementBoundaryBarycentersArray = ((PyArrayObject *)__pyx_t_7);
5164 __pyx_t_8 = (__pyx_v_self->mesh.nodeDiametersArray != 0);
5174 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 91, __pyx_L1_error)
5175 __Pyx_GOTREF(__pyx_t_4);
5176 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 91, __pyx_L1_error)
5177 __Pyx_GOTREF(__pyx_t_2);
5178 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5179 __pyx_t_9 = __pyx_v_self->mesh.nodeDiametersArray;
5181 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
5182 __PYX_ERR(1, 91, __pyx_L1_error)
5184 __pyx_t_3 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_double);
5185 __pyx_t_4 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nNodes_global));
5186 if (unlikely(!__pyx_t_3 || !__pyx_t_4 || !PyBytes_AsString(__pyx_t_3))) __PYX_ERR(1, 91, __pyx_L1_error)
5187 __Pyx_GOTREF(__pyx_t_3);
5188 __Pyx_GOTREF(__pyx_t_4);
5189 __pyx_t_6 = __pyx_array_new(__pyx_t_4,
sizeof(
double), PyBytes_AS_STRING(__pyx_t_3), (
char *)
"c", (
char *) __pyx_t_9);
5190 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 91, __pyx_L1_error)
5191 __Pyx_GOTREF(__pyx_t_6);
5192 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5193 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5195 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
5196 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
5197 if (likely(__pyx_t_3)) {
5198 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
5199 __Pyx_INCREF(__pyx_t_3);
5200 __Pyx_INCREF(
function);
5201 __Pyx_DECREF_SET(__pyx_t_2,
function);
5204 __pyx_t_7 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_2, ((PyObject *)__pyx_t_6));
5205 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
5206 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
5207 if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 91, __pyx_L1_error)
5208 __Pyx_GOTREF(__pyx_t_7);
5209 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5210 if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 91, __pyx_L1_error)
5211 __Pyx_GIVEREF(__pyx_t_7);
5212 __Pyx_GOTREF(__pyx_v_self->nodeDiametersArray);
5213 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeDiametersArray));
5214 __pyx_v_self->nodeDiametersArray = ((PyArrayObject *)__pyx_t_7);
5233 __pyx_t_8 = (__pyx_v_self->mesh.nodeSupportArray != 0);
5243 __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 93, __pyx_L1_error)
5244 __Pyx_GOTREF(__pyx_t_2);
5245 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 93, __pyx_L1_error)
5246 __Pyx_GOTREF(__pyx_t_3);
5247 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5248 __pyx_t_9 = __pyx_v_self->mesh.nodeSupportArray;
5250 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
5251 __PYX_ERR(1, 93, __pyx_L1_error)
5253 __pyx_t_4 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_double);
5254 __pyx_t_2 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_self->mesh.nNodes_global));
5255 if (unlikely(!__pyx_t_4 || !__pyx_t_2 || !PyBytes_AsString(__pyx_t_4))) __PYX_ERR(1, 93, __pyx_L1_error)
5256 __Pyx_GOTREF(__pyx_t_4);
5257 __Pyx_GOTREF(__pyx_t_2);
5258 __pyx_t_6 = __pyx_array_new(__pyx_t_2,
sizeof(
double), PyBytes_AS_STRING(__pyx_t_4), (
char *)
"c", (
char *) __pyx_t_9);
5259 if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 93, __pyx_L1_error)
5260 __Pyx_GOTREF(__pyx_t_6);
5261 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
5262 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
5264 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
5265 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
5266 if (likely(__pyx_t_4)) {
5267 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
5268 __Pyx_INCREF(__pyx_t_4);
5269 __Pyx_INCREF(
function);
5270 __Pyx_DECREF_SET(__pyx_t_3,
function);
5273 __pyx_t_7 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_t_6)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_t_6));
5274 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
5275 __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
5276 if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 93, __pyx_L1_error)
5277 __Pyx_GOTREF(__pyx_t_7);
5278 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
5279 if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(1, 93, __pyx_L1_error)
5280 __Pyx_GIVEREF(__pyx_t_7);
5281 __Pyx_GOTREF(__pyx_v_self->nodeSupportArray);
5282 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeSupportArray));
5283 __pyx_v_self->nodeSupportArray = ((PyArrayObject *)__pyx_t_7);
5302 __pyx_t_10 = __pyx_v_self->mesh.h;
5303 __pyx_v_self->h = __pyx_t_10;
5312 __pyx_t_10 = __pyx_v_self->mesh.hMin;
5313 __pyx_v_self->hMin = __pyx_t_10;
5322 __pyx_t_10 = __pyx_v_self->mesh.sigmaMax;
5323 __pyx_v_self->sigmaMax = __pyx_t_10;
5332 __pyx_t_10 = __pyx_v_self->mesh.volume;
5333 __pyx_v_self->volume = __pyx_t_10;
5344 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5347 __Pyx_XDECREF(__pyx_t_2);
5348 __Pyx_XDECREF(__pyx_t_3);
5349 __Pyx_XDECREF(__pyx_t_4);
5350 __Pyx_XDECREF(((PyObject *)__pyx_t_6));
5351 __Pyx_XDECREF(__pyx_t_7);
5352 __Pyx_AddTraceback(
"cmeshTools.CMesh.buildPythonMeshInterface", __pyx_clineno, __pyx_lineno, __pyx_filename);
5355 __Pyx_XGIVEREF(__pyx_r);
5356 __Pyx_RefNannyFinishContext();
5369 static PyObject *__pyx_pw_10cmeshTools_5CMesh_5buildPythonMeshInterfaceNoArrays(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
5370 static PyObject *__pyx_pw_10cmeshTools_5CMesh_5buildPythonMeshInterfaceNoArrays(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
5371 PyObject *__pyx_r = 0;
5372 __Pyx_RefNannyDeclarations
5373 __Pyx_RefNannySetupContext(
"buildPythonMeshInterfaceNoArrays (wrapper)", 0);
5374 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_4buildPythonMeshInterfaceNoArrays(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
5377 __Pyx_RefNannyFinishContext();
5381 static PyObject *__pyx_pf_10cmeshTools_5CMesh_4buildPythonMeshInterfaceNoArrays(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
5382 PyObject *__pyx_r = NULL;
5383 __Pyx_RefNannyDeclarations
5386 __Pyx_RefNannySetupContext(
"buildPythonMeshInterfaceNoArrays", 0);
5395 __pyx_t_1 = __pyx_v_self->mesh.nElements_global;
5396 __pyx_v_self->nElements_global = __pyx_t_1;
5405 __pyx_t_1 = __pyx_v_self->mesh.nNodes_global;
5406 __pyx_v_self->nNodes_global = __pyx_t_1;
5415 __pyx_t_1 = __pyx_v_self->mesh.nNodes_element;
5416 __pyx_v_self->nNodes_element = __pyx_t_1;
5425 __pyx_t_1 = __pyx_v_self->mesh.nNodes_elementBoundary;
5426 __pyx_v_self->nNodes_elementBoundary = __pyx_t_1;
5435 __pyx_t_1 = __pyx_v_self->mesh.nElementBoundaries_element;
5436 __pyx_v_self->nElementBoundaries_element = __pyx_t_1;
5445 __pyx_t_1 = __pyx_v_self->mesh.nElementBoundaries_global;
5446 __pyx_v_self->nElementBoundaries_global = __pyx_t_1;
5455 __pyx_t_1 = __pyx_v_self->mesh.nInteriorElementBoundaries_global;
5456 __pyx_v_self->nInteriorElementBoundaries_global = __pyx_t_1;
5465 __pyx_t_1 = __pyx_v_self->mesh.nExteriorElementBoundaries_global;
5466 __pyx_v_self->nExteriorElementBoundaries_global = __pyx_t_1;
5475 __pyx_t_1 = __pyx_v_self->mesh.max_nElements_node;
5476 __pyx_v_self->max_nElements_node = __pyx_t_1;
5485 __pyx_t_1 = __pyx_v_self->mesh.nEdges_global;
5486 __pyx_v_self->nEdges_global = __pyx_t_1;
5495 __pyx_t_1 = __pyx_v_self->mesh.max_nNodeNeighbors_node;
5496 __pyx_v_self->max_nNodeNeighbors_node = __pyx_t_1;
5505 __pyx_t_2 = __pyx_v_self->mesh.h;
5506 __pyx_v_self->h = __pyx_t_2;
5515 __pyx_t_2 = __pyx_v_self->mesh.hMin;
5516 __pyx_v_self->hMin = __pyx_t_2;
5525 __pyx_t_2 = __pyx_v_self->mesh.sigmaMax;
5526 __pyx_v_self->sigmaMax = __pyx_t_2;
5535 __pyx_t_2 = __pyx_v_self->mesh.volume;
5536 __pyx_v_self->volume = __pyx_t_2;
5547 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
5548 __Pyx_XGIVEREF(__pyx_r);
5549 __Pyx_RefNannyFinishContext();
5562 static PyObject *__pyx_pw_10cmeshTools_5CMesh_16nElements_global_1__get__(PyObject *__pyx_v_self);
5563 static PyObject *__pyx_pw_10cmeshTools_5CMesh_16nElements_global_1__get__(PyObject *__pyx_v_self) {
5564 PyObject *__pyx_r = 0;
5565 __Pyx_RefNannyDeclarations
5566 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
5567 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_16nElements_global___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
5570 __Pyx_RefNannyFinishContext();
5574 static PyObject *__pyx_pf_10cmeshTools_5CMesh_16nElements_global___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
5575 PyObject *__pyx_r = NULL;
5576 __Pyx_RefNannyDeclarations
5577 PyObject *__pyx_t_1 = NULL;
5578 __Pyx_RefNannySetupContext(
"__get__", 0);
5579 __Pyx_XDECREF(__pyx_r);
5580 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->nElements_global);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 8, __pyx_L1_error)
5581 __Pyx_GOTREF(__pyx_t_1);
5582 __pyx_r = __pyx_t_1;
5588 __Pyx_XDECREF(__pyx_t_1);
5589 __Pyx_AddTraceback(
"cmeshTools.CMesh.nElements_global.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
5592 __Pyx_XGIVEREF(__pyx_r);
5593 __Pyx_RefNannyFinishContext();
5598 static int __pyx_pw_10cmeshTools_5CMesh_16nElements_global_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
5599 static int __pyx_pw_10cmeshTools_5CMesh_16nElements_global_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
5601 __Pyx_RefNannyDeclarations
5602 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
5603 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_16nElements_global_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
5606 __Pyx_RefNannyFinishContext();
5610 static int __pyx_pf_10cmeshTools_5CMesh_16nElements_global_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
5612 __Pyx_RefNannyDeclarations
5614 __Pyx_RefNannySetupContext(
"__set__", 0);
5615 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(2, 8, __pyx_L1_error)
5616 __pyx_v_self->nElements_global = __pyx_t_1;
5622 __Pyx_AddTraceback(
"cmeshTools.CMesh.nElements_global.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
5625 __Pyx_RefNannyFinishContext();
5638 static PyObject *__pyx_pw_10cmeshTools_5CMesh_13nNodes_global_1__get__(PyObject *__pyx_v_self);
5639 static PyObject *__pyx_pw_10cmeshTools_5CMesh_13nNodes_global_1__get__(PyObject *__pyx_v_self) {
5640 PyObject *__pyx_r = 0;
5641 __Pyx_RefNannyDeclarations
5642 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
5643 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_13nNodes_global___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
5646 __Pyx_RefNannyFinishContext();
5650 static PyObject *__pyx_pf_10cmeshTools_5CMesh_13nNodes_global___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
5651 PyObject *__pyx_r = NULL;
5652 __Pyx_RefNannyDeclarations
5653 PyObject *__pyx_t_1 = NULL;
5654 __Pyx_RefNannySetupContext(
"__get__", 0);
5655 __Pyx_XDECREF(__pyx_r);
5656 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->nNodes_global);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error)
5657 __Pyx_GOTREF(__pyx_t_1);
5658 __pyx_r = __pyx_t_1;
5664 __Pyx_XDECREF(__pyx_t_1);
5665 __Pyx_AddTraceback(
"cmeshTools.CMesh.nNodes_global.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
5668 __Pyx_XGIVEREF(__pyx_r);
5669 __Pyx_RefNannyFinishContext();
5674 static int __pyx_pw_10cmeshTools_5CMesh_13nNodes_global_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
5675 static int __pyx_pw_10cmeshTools_5CMesh_13nNodes_global_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
5677 __Pyx_RefNannyDeclarations
5678 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
5679 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_13nNodes_global_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
5682 __Pyx_RefNannyFinishContext();
5686 static int __pyx_pf_10cmeshTools_5CMesh_13nNodes_global_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
5688 __Pyx_RefNannyDeclarations
5690 __Pyx_RefNannySetupContext(
"__set__", 0);
5691 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(2, 9, __pyx_L1_error)
5692 __pyx_v_self->nNodes_global = __pyx_t_1;
5698 __Pyx_AddTraceback(
"cmeshTools.CMesh.nNodes_global.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
5701 __Pyx_RefNannyFinishContext();
5714 static PyObject *__pyx_pw_10cmeshTools_5CMesh_14nNodes_element_1__get__(PyObject *__pyx_v_self);
5715 static PyObject *__pyx_pw_10cmeshTools_5CMesh_14nNodes_element_1__get__(PyObject *__pyx_v_self) {
5716 PyObject *__pyx_r = 0;
5717 __Pyx_RefNannyDeclarations
5718 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
5719 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_14nNodes_element___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
5722 __Pyx_RefNannyFinishContext();
5726 static PyObject *__pyx_pf_10cmeshTools_5CMesh_14nNodes_element___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
5727 PyObject *__pyx_r = NULL;
5728 __Pyx_RefNannyDeclarations
5729 PyObject *__pyx_t_1 = NULL;
5730 __Pyx_RefNannySetupContext(
"__get__", 0);
5731 __Pyx_XDECREF(__pyx_r);
5732 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->nNodes_element);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 10, __pyx_L1_error)
5733 __Pyx_GOTREF(__pyx_t_1);
5734 __pyx_r = __pyx_t_1;
5740 __Pyx_XDECREF(__pyx_t_1);
5741 __Pyx_AddTraceback(
"cmeshTools.CMesh.nNodes_element.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
5744 __Pyx_XGIVEREF(__pyx_r);
5745 __Pyx_RefNannyFinishContext();
5750 static int __pyx_pw_10cmeshTools_5CMesh_14nNodes_element_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
5751 static int __pyx_pw_10cmeshTools_5CMesh_14nNodes_element_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
5753 __Pyx_RefNannyDeclarations
5754 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
5755 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_14nNodes_element_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
5758 __Pyx_RefNannyFinishContext();
5762 static int __pyx_pf_10cmeshTools_5CMesh_14nNodes_element_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
5764 __Pyx_RefNannyDeclarations
5766 __Pyx_RefNannySetupContext(
"__set__", 0);
5767 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(2, 10, __pyx_L1_error)
5768 __pyx_v_self->nNodes_element = __pyx_t_1;
5774 __Pyx_AddTraceback(
"cmeshTools.CMesh.nNodes_element.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
5777 __Pyx_RefNannyFinishContext();
5790 static PyObject *__pyx_pw_10cmeshTools_5CMesh_22nNodes_elementBoundary_1__get__(PyObject *__pyx_v_self);
5791 static PyObject *__pyx_pw_10cmeshTools_5CMesh_22nNodes_elementBoundary_1__get__(PyObject *__pyx_v_self) {
5792 PyObject *__pyx_r = 0;
5793 __Pyx_RefNannyDeclarations
5794 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
5795 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_22nNodes_elementBoundary___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
5798 __Pyx_RefNannyFinishContext();
5802 static PyObject *__pyx_pf_10cmeshTools_5CMesh_22nNodes_elementBoundary___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
5803 PyObject *__pyx_r = NULL;
5804 __Pyx_RefNannyDeclarations
5805 PyObject *__pyx_t_1 = NULL;
5806 __Pyx_RefNannySetupContext(
"__get__", 0);
5807 __Pyx_XDECREF(__pyx_r);
5808 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->nNodes_elementBoundary);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 11, __pyx_L1_error)
5809 __Pyx_GOTREF(__pyx_t_1);
5810 __pyx_r = __pyx_t_1;
5816 __Pyx_XDECREF(__pyx_t_1);
5817 __Pyx_AddTraceback(
"cmeshTools.CMesh.nNodes_elementBoundary.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
5820 __Pyx_XGIVEREF(__pyx_r);
5821 __Pyx_RefNannyFinishContext();
5826 static int __pyx_pw_10cmeshTools_5CMesh_22nNodes_elementBoundary_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
5827 static int __pyx_pw_10cmeshTools_5CMesh_22nNodes_elementBoundary_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
5829 __Pyx_RefNannyDeclarations
5830 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
5831 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_22nNodes_elementBoundary_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
5834 __Pyx_RefNannyFinishContext();
5838 static int __pyx_pf_10cmeshTools_5CMesh_22nNodes_elementBoundary_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
5840 __Pyx_RefNannyDeclarations
5842 __Pyx_RefNannySetupContext(
"__set__", 0);
5843 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(2, 11, __pyx_L1_error)
5844 __pyx_v_self->nNodes_elementBoundary = __pyx_t_1;
5850 __Pyx_AddTraceback(
"cmeshTools.CMesh.nNodes_elementBoundary.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
5853 __Pyx_RefNannyFinishContext();
5866 static PyObject *__pyx_pw_10cmeshTools_5CMesh_26nElementBoundaries_element_1__get__(PyObject *__pyx_v_self);
5867 static PyObject *__pyx_pw_10cmeshTools_5CMesh_26nElementBoundaries_element_1__get__(PyObject *__pyx_v_self) {
5868 PyObject *__pyx_r = 0;
5869 __Pyx_RefNannyDeclarations
5870 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
5871 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_26nElementBoundaries_element___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
5874 __Pyx_RefNannyFinishContext();
5878 static PyObject *__pyx_pf_10cmeshTools_5CMesh_26nElementBoundaries_element___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
5879 PyObject *__pyx_r = NULL;
5880 __Pyx_RefNannyDeclarations
5881 PyObject *__pyx_t_1 = NULL;
5882 __Pyx_RefNannySetupContext(
"__get__", 0);
5883 __Pyx_XDECREF(__pyx_r);
5884 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->nElementBoundaries_element);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 12, __pyx_L1_error)
5885 __Pyx_GOTREF(__pyx_t_1);
5886 __pyx_r = __pyx_t_1;
5892 __Pyx_XDECREF(__pyx_t_1);
5893 __Pyx_AddTraceback(
"cmeshTools.CMesh.nElementBoundaries_element.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
5896 __Pyx_XGIVEREF(__pyx_r);
5897 __Pyx_RefNannyFinishContext();
5902 static int __pyx_pw_10cmeshTools_5CMesh_26nElementBoundaries_element_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
5903 static int __pyx_pw_10cmeshTools_5CMesh_26nElementBoundaries_element_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
5905 __Pyx_RefNannyDeclarations
5906 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
5907 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_26nElementBoundaries_element_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
5910 __Pyx_RefNannyFinishContext();
5914 static int __pyx_pf_10cmeshTools_5CMesh_26nElementBoundaries_element_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
5916 __Pyx_RefNannyDeclarations
5918 __Pyx_RefNannySetupContext(
"__set__", 0);
5919 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(2, 12, __pyx_L1_error)
5920 __pyx_v_self->nElementBoundaries_element = __pyx_t_1;
5926 __Pyx_AddTraceback(
"cmeshTools.CMesh.nElementBoundaries_element.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
5929 __Pyx_RefNannyFinishContext();
5942 static PyObject *__pyx_pw_10cmeshTools_5CMesh_25nElementBoundaries_global_1__get__(PyObject *__pyx_v_self);
5943 static PyObject *__pyx_pw_10cmeshTools_5CMesh_25nElementBoundaries_global_1__get__(PyObject *__pyx_v_self) {
5944 PyObject *__pyx_r = 0;
5945 __Pyx_RefNannyDeclarations
5946 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
5947 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_25nElementBoundaries_global___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
5950 __Pyx_RefNannyFinishContext();
5954 static PyObject *__pyx_pf_10cmeshTools_5CMesh_25nElementBoundaries_global___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
5955 PyObject *__pyx_r = NULL;
5956 __Pyx_RefNannyDeclarations
5957 PyObject *__pyx_t_1 = NULL;
5958 __Pyx_RefNannySetupContext(
"__get__", 0);
5959 __Pyx_XDECREF(__pyx_r);
5960 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->nElementBoundaries_global);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 13, __pyx_L1_error)
5961 __Pyx_GOTREF(__pyx_t_1);
5962 __pyx_r = __pyx_t_1;
5968 __Pyx_XDECREF(__pyx_t_1);
5969 __Pyx_AddTraceback(
"cmeshTools.CMesh.nElementBoundaries_global.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
5972 __Pyx_XGIVEREF(__pyx_r);
5973 __Pyx_RefNannyFinishContext();
5978 static int __pyx_pw_10cmeshTools_5CMesh_25nElementBoundaries_global_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
5979 static int __pyx_pw_10cmeshTools_5CMesh_25nElementBoundaries_global_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
5981 __Pyx_RefNannyDeclarations
5982 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
5983 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_25nElementBoundaries_global_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
5986 __Pyx_RefNannyFinishContext();
5990 static int __pyx_pf_10cmeshTools_5CMesh_25nElementBoundaries_global_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
5992 __Pyx_RefNannyDeclarations
5994 __Pyx_RefNannySetupContext(
"__set__", 0);
5995 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(2, 13, __pyx_L1_error)
5996 __pyx_v_self->nElementBoundaries_global = __pyx_t_1;
6002 __Pyx_AddTraceback(
"cmeshTools.CMesh.nElementBoundaries_global.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6005 __Pyx_RefNannyFinishContext();
6018 static PyObject *__pyx_pw_10cmeshTools_5CMesh_33nInteriorElementBoundaries_global_1__get__(PyObject *__pyx_v_self);
6019 static PyObject *__pyx_pw_10cmeshTools_5CMesh_33nInteriorElementBoundaries_global_1__get__(PyObject *__pyx_v_self) {
6020 PyObject *__pyx_r = 0;
6021 __Pyx_RefNannyDeclarations
6022 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
6023 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_33nInteriorElementBoundaries_global___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
6026 __Pyx_RefNannyFinishContext();
6030 static PyObject *__pyx_pf_10cmeshTools_5CMesh_33nInteriorElementBoundaries_global___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
6031 PyObject *__pyx_r = NULL;
6032 __Pyx_RefNannyDeclarations
6033 PyObject *__pyx_t_1 = NULL;
6034 __Pyx_RefNannySetupContext(
"__get__", 0);
6035 __Pyx_XDECREF(__pyx_r);
6036 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->nInteriorElementBoundaries_global);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 14, __pyx_L1_error)
6037 __Pyx_GOTREF(__pyx_t_1);
6038 __pyx_r = __pyx_t_1;
6044 __Pyx_XDECREF(__pyx_t_1);
6045 __Pyx_AddTraceback(
"cmeshTools.CMesh.nInteriorElementBoundaries_global.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6048 __Pyx_XGIVEREF(__pyx_r);
6049 __Pyx_RefNannyFinishContext();
6054 static int __pyx_pw_10cmeshTools_5CMesh_33nInteriorElementBoundaries_global_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
6055 static int __pyx_pw_10cmeshTools_5CMesh_33nInteriorElementBoundaries_global_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
6057 __Pyx_RefNannyDeclarations
6058 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
6059 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_33nInteriorElementBoundaries_global_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
6062 __Pyx_RefNannyFinishContext();
6066 static int __pyx_pf_10cmeshTools_5CMesh_33nInteriorElementBoundaries_global_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
6068 __Pyx_RefNannyDeclarations
6070 __Pyx_RefNannySetupContext(
"__set__", 0);
6071 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(2, 14, __pyx_L1_error)
6072 __pyx_v_self->nInteriorElementBoundaries_global = __pyx_t_1;
6078 __Pyx_AddTraceback(
"cmeshTools.CMesh.nInteriorElementBoundaries_global.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6081 __Pyx_RefNannyFinishContext();
6094 static PyObject *__pyx_pw_10cmeshTools_5CMesh_33nExteriorElementBoundaries_global_1__get__(PyObject *__pyx_v_self);
6095 static PyObject *__pyx_pw_10cmeshTools_5CMesh_33nExteriorElementBoundaries_global_1__get__(PyObject *__pyx_v_self) {
6096 PyObject *__pyx_r = 0;
6097 __Pyx_RefNannyDeclarations
6098 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
6099 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_33nExteriorElementBoundaries_global___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
6102 __Pyx_RefNannyFinishContext();
6106 static PyObject *__pyx_pf_10cmeshTools_5CMesh_33nExteriorElementBoundaries_global___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
6107 PyObject *__pyx_r = NULL;
6108 __Pyx_RefNannyDeclarations
6109 PyObject *__pyx_t_1 = NULL;
6110 __Pyx_RefNannySetupContext(
"__get__", 0);
6111 __Pyx_XDECREF(__pyx_r);
6112 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->nExteriorElementBoundaries_global);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 15, __pyx_L1_error)
6113 __Pyx_GOTREF(__pyx_t_1);
6114 __pyx_r = __pyx_t_1;
6120 __Pyx_XDECREF(__pyx_t_1);
6121 __Pyx_AddTraceback(
"cmeshTools.CMesh.nExteriorElementBoundaries_global.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6124 __Pyx_XGIVEREF(__pyx_r);
6125 __Pyx_RefNannyFinishContext();
6130 static int __pyx_pw_10cmeshTools_5CMesh_33nExteriorElementBoundaries_global_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
6131 static int __pyx_pw_10cmeshTools_5CMesh_33nExteriorElementBoundaries_global_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
6133 __Pyx_RefNannyDeclarations
6134 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
6135 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_33nExteriorElementBoundaries_global_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
6138 __Pyx_RefNannyFinishContext();
6142 static int __pyx_pf_10cmeshTools_5CMesh_33nExteriorElementBoundaries_global_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
6144 __Pyx_RefNannyDeclarations
6146 __Pyx_RefNannySetupContext(
"__set__", 0);
6147 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(2, 15, __pyx_L1_error)
6148 __pyx_v_self->nExteriorElementBoundaries_global = __pyx_t_1;
6154 __Pyx_AddTraceback(
"cmeshTools.CMesh.nExteriorElementBoundaries_global.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6157 __Pyx_RefNannyFinishContext();
6170 static PyObject *__pyx_pw_10cmeshTools_5CMesh_18max_nElements_node_1__get__(PyObject *__pyx_v_self);
6171 static PyObject *__pyx_pw_10cmeshTools_5CMesh_18max_nElements_node_1__get__(PyObject *__pyx_v_self) {
6172 PyObject *__pyx_r = 0;
6173 __Pyx_RefNannyDeclarations
6174 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
6175 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_18max_nElements_node___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
6178 __Pyx_RefNannyFinishContext();
6182 static PyObject *__pyx_pf_10cmeshTools_5CMesh_18max_nElements_node___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
6183 PyObject *__pyx_r = NULL;
6184 __Pyx_RefNannyDeclarations
6185 PyObject *__pyx_t_1 = NULL;
6186 __Pyx_RefNannySetupContext(
"__get__", 0);
6187 __Pyx_XDECREF(__pyx_r);
6188 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->max_nElements_node);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 16, __pyx_L1_error)
6189 __Pyx_GOTREF(__pyx_t_1);
6190 __pyx_r = __pyx_t_1;
6196 __Pyx_XDECREF(__pyx_t_1);
6197 __Pyx_AddTraceback(
"cmeshTools.CMesh.max_nElements_node.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6200 __Pyx_XGIVEREF(__pyx_r);
6201 __Pyx_RefNannyFinishContext();
6206 static int __pyx_pw_10cmeshTools_5CMesh_18max_nElements_node_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
6207 static int __pyx_pw_10cmeshTools_5CMesh_18max_nElements_node_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
6209 __Pyx_RefNannyDeclarations
6210 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
6211 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_18max_nElements_node_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
6214 __Pyx_RefNannyFinishContext();
6218 static int __pyx_pf_10cmeshTools_5CMesh_18max_nElements_node_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
6220 __Pyx_RefNannyDeclarations
6222 __Pyx_RefNannySetupContext(
"__set__", 0);
6223 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(2, 16, __pyx_L1_error)
6224 __pyx_v_self->max_nElements_node = __pyx_t_1;
6230 __Pyx_AddTraceback(
"cmeshTools.CMesh.max_nElements_node.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6233 __Pyx_RefNannyFinishContext();
6246 static PyObject *__pyx_pw_10cmeshTools_5CMesh_13nEdges_global_1__get__(PyObject *__pyx_v_self);
6247 static PyObject *__pyx_pw_10cmeshTools_5CMesh_13nEdges_global_1__get__(PyObject *__pyx_v_self) {
6248 PyObject *__pyx_r = 0;
6249 __Pyx_RefNannyDeclarations
6250 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
6251 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_13nEdges_global___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
6254 __Pyx_RefNannyFinishContext();
6258 static PyObject *__pyx_pf_10cmeshTools_5CMesh_13nEdges_global___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
6259 PyObject *__pyx_r = NULL;
6260 __Pyx_RefNannyDeclarations
6261 PyObject *__pyx_t_1 = NULL;
6262 __Pyx_RefNannySetupContext(
"__get__", 0);
6263 __Pyx_XDECREF(__pyx_r);
6264 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->nEdges_global);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 17, __pyx_L1_error)
6265 __Pyx_GOTREF(__pyx_t_1);
6266 __pyx_r = __pyx_t_1;
6272 __Pyx_XDECREF(__pyx_t_1);
6273 __Pyx_AddTraceback(
"cmeshTools.CMesh.nEdges_global.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6276 __Pyx_XGIVEREF(__pyx_r);
6277 __Pyx_RefNannyFinishContext();
6282 static int __pyx_pw_10cmeshTools_5CMesh_13nEdges_global_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
6283 static int __pyx_pw_10cmeshTools_5CMesh_13nEdges_global_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
6285 __Pyx_RefNannyDeclarations
6286 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
6287 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_13nEdges_global_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
6290 __Pyx_RefNannyFinishContext();
6294 static int __pyx_pf_10cmeshTools_5CMesh_13nEdges_global_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
6296 __Pyx_RefNannyDeclarations
6298 __Pyx_RefNannySetupContext(
"__set__", 0);
6299 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(2, 17, __pyx_L1_error)
6300 __pyx_v_self->nEdges_global = __pyx_t_1;
6306 __Pyx_AddTraceback(
"cmeshTools.CMesh.nEdges_global.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6309 __Pyx_RefNannyFinishContext();
6322 static PyObject *__pyx_pw_10cmeshTools_5CMesh_23max_nNodeNeighbors_node_1__get__(PyObject *__pyx_v_self);
6323 static PyObject *__pyx_pw_10cmeshTools_5CMesh_23max_nNodeNeighbors_node_1__get__(PyObject *__pyx_v_self) {
6324 PyObject *__pyx_r = 0;
6325 __Pyx_RefNannyDeclarations
6326 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
6327 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_23max_nNodeNeighbors_node___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
6330 __Pyx_RefNannyFinishContext();
6334 static PyObject *__pyx_pf_10cmeshTools_5CMesh_23max_nNodeNeighbors_node___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
6335 PyObject *__pyx_r = NULL;
6336 __Pyx_RefNannyDeclarations
6337 PyObject *__pyx_t_1 = NULL;
6338 __Pyx_RefNannySetupContext(
"__get__", 0);
6339 __Pyx_XDECREF(__pyx_r);
6340 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->max_nNodeNeighbors_node);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 18, __pyx_L1_error)
6341 __Pyx_GOTREF(__pyx_t_1);
6342 __pyx_r = __pyx_t_1;
6348 __Pyx_XDECREF(__pyx_t_1);
6349 __Pyx_AddTraceback(
"cmeshTools.CMesh.max_nNodeNeighbors_node.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6352 __Pyx_XGIVEREF(__pyx_r);
6353 __Pyx_RefNannyFinishContext();
6358 static int __pyx_pw_10cmeshTools_5CMesh_23max_nNodeNeighbors_node_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
6359 static int __pyx_pw_10cmeshTools_5CMesh_23max_nNodeNeighbors_node_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
6361 __Pyx_RefNannyDeclarations
6362 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
6363 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_23max_nNodeNeighbors_node_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
6366 __Pyx_RefNannyFinishContext();
6370 static int __pyx_pf_10cmeshTools_5CMesh_23max_nNodeNeighbors_node_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
6372 __Pyx_RefNannyDeclarations
6374 __Pyx_RefNannySetupContext(
"__set__", 0);
6375 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(2, 18, __pyx_L1_error)
6376 __pyx_v_self->max_nNodeNeighbors_node = __pyx_t_1;
6382 __Pyx_AddTraceback(
"cmeshTools.CMesh.max_nNodeNeighbors_node.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6385 __Pyx_RefNannyFinishContext();
6398 static PyObject *__pyx_pw_10cmeshTools_5CMesh_17elementNodesArray_1__get__(PyObject *__pyx_v_self);
6399 static PyObject *__pyx_pw_10cmeshTools_5CMesh_17elementNodesArray_1__get__(PyObject *__pyx_v_self) {
6400 PyObject *__pyx_r = 0;
6401 __Pyx_RefNannyDeclarations
6402 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
6403 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_17elementNodesArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
6406 __Pyx_RefNannyFinishContext();
6410 static PyObject *__pyx_pf_10cmeshTools_5CMesh_17elementNodesArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
6411 PyObject *__pyx_r = NULL;
6412 __Pyx_RefNannyDeclarations
6413 __Pyx_RefNannySetupContext(
"__get__", 0);
6414 __Pyx_XDECREF(__pyx_r);
6415 __Pyx_INCREF(((PyObject *)__pyx_v_self->elementNodesArray));
6416 __pyx_r = ((PyObject *)__pyx_v_self->elementNodesArray);
6421 __Pyx_XGIVEREF(__pyx_r);
6422 __Pyx_RefNannyFinishContext();
6427 static int __pyx_pw_10cmeshTools_5CMesh_17elementNodesArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
6428 static int __pyx_pw_10cmeshTools_5CMesh_17elementNodesArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
6430 __Pyx_RefNannyDeclarations
6431 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
6432 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_17elementNodesArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
6435 __Pyx_RefNannyFinishContext();
6439 static int __pyx_pf_10cmeshTools_5CMesh_17elementNodesArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
6441 __Pyx_RefNannyDeclarations
6442 PyObject *__pyx_t_1 = NULL;
6443 __Pyx_RefNannySetupContext(
"__set__", 0);
6444 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 37, __pyx_L1_error)
6445 __pyx_t_1 = __pyx_v_value;
6446 __Pyx_INCREF(__pyx_t_1);
6447 __Pyx_GIVEREF(__pyx_t_1);
6448 __Pyx_GOTREF(__pyx_v_self->elementNodesArray);
6449 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementNodesArray));
6450 __pyx_v_self->elementNodesArray = ((PyArrayObject *)__pyx_t_1);
6457 __Pyx_XDECREF(__pyx_t_1);
6458 __Pyx_AddTraceback(
"cmeshTools.CMesh.elementNodesArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6461 __Pyx_RefNannyFinishContext();
6466 static int __pyx_pw_10cmeshTools_5CMesh_17elementNodesArray_5__del__(PyObject *__pyx_v_self);
6467 static int __pyx_pw_10cmeshTools_5CMesh_17elementNodesArray_5__del__(PyObject *__pyx_v_self) {
6469 __Pyx_RefNannyDeclarations
6470 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
6471 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_17elementNodesArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
6474 __Pyx_RefNannyFinishContext();
6478 static int __pyx_pf_10cmeshTools_5CMesh_17elementNodesArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
6480 __Pyx_RefNannyDeclarations
6481 __Pyx_RefNannySetupContext(
"__del__", 0);
6482 __Pyx_INCREF(Py_None);
6483 __Pyx_GIVEREF(Py_None);
6484 __Pyx_GOTREF(__pyx_v_self->elementNodesArray);
6485 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementNodesArray));
6486 __pyx_v_self->elementNodesArray = ((PyArrayObject *)Py_None);
6490 __Pyx_RefNannyFinishContext();
6503 static PyObject *__pyx_pw_10cmeshTools_5CMesh_17nodeElementsArray_1__get__(PyObject *__pyx_v_self);
6504 static PyObject *__pyx_pw_10cmeshTools_5CMesh_17nodeElementsArray_1__get__(PyObject *__pyx_v_self) {
6505 PyObject *__pyx_r = 0;
6506 __Pyx_RefNannyDeclarations
6507 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
6508 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_17nodeElementsArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
6511 __Pyx_RefNannyFinishContext();
6515 static PyObject *__pyx_pf_10cmeshTools_5CMesh_17nodeElementsArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
6516 PyObject *__pyx_r = NULL;
6517 __Pyx_RefNannyDeclarations
6518 __Pyx_RefNannySetupContext(
"__get__", 0);
6519 __Pyx_XDECREF(__pyx_r);
6520 __Pyx_INCREF(((PyObject *)__pyx_v_self->nodeElementsArray));
6521 __pyx_r = ((PyObject *)__pyx_v_self->nodeElementsArray);
6526 __Pyx_XGIVEREF(__pyx_r);
6527 __Pyx_RefNannyFinishContext();
6532 static int __pyx_pw_10cmeshTools_5CMesh_17nodeElementsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
6533 static int __pyx_pw_10cmeshTools_5CMesh_17nodeElementsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
6535 __Pyx_RefNannyDeclarations
6536 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
6537 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_17nodeElementsArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
6540 __Pyx_RefNannyFinishContext();
6544 static int __pyx_pf_10cmeshTools_5CMesh_17nodeElementsArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
6546 __Pyx_RefNannyDeclarations
6547 PyObject *__pyx_t_1 = NULL;
6548 __Pyx_RefNannySetupContext(
"__set__", 0);
6549 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 38, __pyx_L1_error)
6550 __pyx_t_1 = __pyx_v_value;
6551 __Pyx_INCREF(__pyx_t_1);
6552 __Pyx_GIVEREF(__pyx_t_1);
6553 __Pyx_GOTREF(__pyx_v_self->nodeElementsArray);
6554 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeElementsArray));
6555 __pyx_v_self->nodeElementsArray = ((PyArrayObject *)__pyx_t_1);
6562 __Pyx_XDECREF(__pyx_t_1);
6563 __Pyx_AddTraceback(
"cmeshTools.CMesh.nodeElementsArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6566 __Pyx_RefNannyFinishContext();
6571 static int __pyx_pw_10cmeshTools_5CMesh_17nodeElementsArray_5__del__(PyObject *__pyx_v_self);
6572 static int __pyx_pw_10cmeshTools_5CMesh_17nodeElementsArray_5__del__(PyObject *__pyx_v_self) {
6574 __Pyx_RefNannyDeclarations
6575 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
6576 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_17nodeElementsArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
6579 __Pyx_RefNannyFinishContext();
6583 static int __pyx_pf_10cmeshTools_5CMesh_17nodeElementsArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
6585 __Pyx_RefNannyDeclarations
6586 __Pyx_RefNannySetupContext(
"__del__", 0);
6587 __Pyx_INCREF(Py_None);
6588 __Pyx_GIVEREF(Py_None);
6589 __Pyx_GOTREF(__pyx_v_self->nodeElementsArray);
6590 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeElementsArray));
6591 __pyx_v_self->nodeElementsArray = ((PyArrayObject *)Py_None);
6595 __Pyx_RefNannyFinishContext();
6608 static PyObject *__pyx_pw_10cmeshTools_5CMesh_18nodeElementOffsets_1__get__(PyObject *__pyx_v_self);
6609 static PyObject *__pyx_pw_10cmeshTools_5CMesh_18nodeElementOffsets_1__get__(PyObject *__pyx_v_self) {
6610 PyObject *__pyx_r = 0;
6611 __Pyx_RefNannyDeclarations
6612 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
6613 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_18nodeElementOffsets___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
6616 __Pyx_RefNannyFinishContext();
6620 static PyObject *__pyx_pf_10cmeshTools_5CMesh_18nodeElementOffsets___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
6621 PyObject *__pyx_r = NULL;
6622 __Pyx_RefNannyDeclarations
6623 __Pyx_RefNannySetupContext(
"__get__", 0);
6624 __Pyx_XDECREF(__pyx_r);
6625 __Pyx_INCREF(((PyObject *)__pyx_v_self->nodeElementOffsets));
6626 __pyx_r = ((PyObject *)__pyx_v_self->nodeElementOffsets);
6631 __Pyx_XGIVEREF(__pyx_r);
6632 __Pyx_RefNannyFinishContext();
6637 static int __pyx_pw_10cmeshTools_5CMesh_18nodeElementOffsets_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
6638 static int __pyx_pw_10cmeshTools_5CMesh_18nodeElementOffsets_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
6640 __Pyx_RefNannyDeclarations
6641 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
6642 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_18nodeElementOffsets_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
6645 __Pyx_RefNannyFinishContext();
6649 static int __pyx_pf_10cmeshTools_5CMesh_18nodeElementOffsets_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
6651 __Pyx_RefNannyDeclarations
6652 PyObject *__pyx_t_1 = NULL;
6653 __Pyx_RefNannySetupContext(
"__set__", 0);
6654 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 39, __pyx_L1_error)
6655 __pyx_t_1 = __pyx_v_value;
6656 __Pyx_INCREF(__pyx_t_1);
6657 __Pyx_GIVEREF(__pyx_t_1);
6658 __Pyx_GOTREF(__pyx_v_self->nodeElementOffsets);
6659 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeElementOffsets));
6660 __pyx_v_self->nodeElementOffsets = ((PyArrayObject *)__pyx_t_1);
6667 __Pyx_XDECREF(__pyx_t_1);
6668 __Pyx_AddTraceback(
"cmeshTools.CMesh.nodeElementOffsets.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6671 __Pyx_RefNannyFinishContext();
6676 static int __pyx_pw_10cmeshTools_5CMesh_18nodeElementOffsets_5__del__(PyObject *__pyx_v_self);
6677 static int __pyx_pw_10cmeshTools_5CMesh_18nodeElementOffsets_5__del__(PyObject *__pyx_v_self) {
6679 __Pyx_RefNannyDeclarations
6680 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
6681 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_18nodeElementOffsets_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
6684 __Pyx_RefNannyFinishContext();
6688 static int __pyx_pf_10cmeshTools_5CMesh_18nodeElementOffsets_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
6690 __Pyx_RefNannyDeclarations
6691 __Pyx_RefNannySetupContext(
"__del__", 0);
6692 __Pyx_INCREF(Py_None);
6693 __Pyx_GIVEREF(Py_None);
6694 __Pyx_GOTREF(__pyx_v_self->nodeElementOffsets);
6695 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeElementOffsets));
6696 __pyx_v_self->nodeElementOffsets = ((PyArrayObject *)Py_None);
6700 __Pyx_RefNannyFinishContext();
6713 static PyObject *__pyx_pw_10cmeshTools_5CMesh_21elementNeighborsArray_1__get__(PyObject *__pyx_v_self);
6714 static PyObject *__pyx_pw_10cmeshTools_5CMesh_21elementNeighborsArray_1__get__(PyObject *__pyx_v_self) {
6715 PyObject *__pyx_r = 0;
6716 __Pyx_RefNannyDeclarations
6717 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
6718 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_21elementNeighborsArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
6721 __Pyx_RefNannyFinishContext();
6725 static PyObject *__pyx_pf_10cmeshTools_5CMesh_21elementNeighborsArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
6726 PyObject *__pyx_r = NULL;
6727 __Pyx_RefNannyDeclarations
6728 __Pyx_RefNannySetupContext(
"__get__", 0);
6729 __Pyx_XDECREF(__pyx_r);
6730 __Pyx_INCREF(((PyObject *)__pyx_v_self->elementNeighborsArray));
6731 __pyx_r = ((PyObject *)__pyx_v_self->elementNeighborsArray);
6736 __Pyx_XGIVEREF(__pyx_r);
6737 __Pyx_RefNannyFinishContext();
6742 static int __pyx_pw_10cmeshTools_5CMesh_21elementNeighborsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
6743 static int __pyx_pw_10cmeshTools_5CMesh_21elementNeighborsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
6745 __Pyx_RefNannyDeclarations
6746 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
6747 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_21elementNeighborsArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
6750 __Pyx_RefNannyFinishContext();
6754 static int __pyx_pf_10cmeshTools_5CMesh_21elementNeighborsArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
6756 __Pyx_RefNannyDeclarations
6757 PyObject *__pyx_t_1 = NULL;
6758 __Pyx_RefNannySetupContext(
"__set__", 0);
6759 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 40, __pyx_L1_error)
6760 __pyx_t_1 = __pyx_v_value;
6761 __Pyx_INCREF(__pyx_t_1);
6762 __Pyx_GIVEREF(__pyx_t_1);
6763 __Pyx_GOTREF(__pyx_v_self->elementNeighborsArray);
6764 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementNeighborsArray));
6765 __pyx_v_self->elementNeighborsArray = ((PyArrayObject *)__pyx_t_1);
6772 __Pyx_XDECREF(__pyx_t_1);
6773 __Pyx_AddTraceback(
"cmeshTools.CMesh.elementNeighborsArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6776 __Pyx_RefNannyFinishContext();
6781 static int __pyx_pw_10cmeshTools_5CMesh_21elementNeighborsArray_5__del__(PyObject *__pyx_v_self);
6782 static int __pyx_pw_10cmeshTools_5CMesh_21elementNeighborsArray_5__del__(PyObject *__pyx_v_self) {
6784 __Pyx_RefNannyDeclarations
6785 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
6786 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_21elementNeighborsArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
6789 __Pyx_RefNannyFinishContext();
6793 static int __pyx_pf_10cmeshTools_5CMesh_21elementNeighborsArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
6795 __Pyx_RefNannyDeclarations
6796 __Pyx_RefNannySetupContext(
"__del__", 0);
6797 __Pyx_INCREF(Py_None);
6798 __Pyx_GIVEREF(Py_None);
6799 __Pyx_GOTREF(__pyx_v_self->elementNeighborsArray);
6800 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementNeighborsArray));
6801 __pyx_v_self->elementNeighborsArray = ((PyArrayObject *)Py_None);
6805 __Pyx_RefNannyFinishContext();
6818 static PyObject *__pyx_pw_10cmeshTools_5CMesh_22elementBoundariesArray_1__get__(PyObject *__pyx_v_self);
6819 static PyObject *__pyx_pw_10cmeshTools_5CMesh_22elementBoundariesArray_1__get__(PyObject *__pyx_v_self) {
6820 PyObject *__pyx_r = 0;
6821 __Pyx_RefNannyDeclarations
6822 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
6823 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_22elementBoundariesArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
6826 __Pyx_RefNannyFinishContext();
6830 static PyObject *__pyx_pf_10cmeshTools_5CMesh_22elementBoundariesArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
6831 PyObject *__pyx_r = NULL;
6832 __Pyx_RefNannyDeclarations
6833 __Pyx_RefNannySetupContext(
"__get__", 0);
6834 __Pyx_XDECREF(__pyx_r);
6835 __Pyx_INCREF(((PyObject *)__pyx_v_self->elementBoundariesArray));
6836 __pyx_r = ((PyObject *)__pyx_v_self->elementBoundariesArray);
6841 __Pyx_XGIVEREF(__pyx_r);
6842 __Pyx_RefNannyFinishContext();
6847 static int __pyx_pw_10cmeshTools_5CMesh_22elementBoundariesArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
6848 static int __pyx_pw_10cmeshTools_5CMesh_22elementBoundariesArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
6850 __Pyx_RefNannyDeclarations
6851 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
6852 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_22elementBoundariesArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
6855 __Pyx_RefNannyFinishContext();
6859 static int __pyx_pf_10cmeshTools_5CMesh_22elementBoundariesArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
6861 __Pyx_RefNannyDeclarations
6862 PyObject *__pyx_t_1 = NULL;
6863 __Pyx_RefNannySetupContext(
"__set__", 0);
6864 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 41, __pyx_L1_error)
6865 __pyx_t_1 = __pyx_v_value;
6866 __Pyx_INCREF(__pyx_t_1);
6867 __Pyx_GIVEREF(__pyx_t_1);
6868 __Pyx_GOTREF(__pyx_v_self->elementBoundariesArray);
6869 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundariesArray));
6870 __pyx_v_self->elementBoundariesArray = ((PyArrayObject *)__pyx_t_1);
6877 __Pyx_XDECREF(__pyx_t_1);
6878 __Pyx_AddTraceback(
"cmeshTools.CMesh.elementBoundariesArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6881 __Pyx_RefNannyFinishContext();
6886 static int __pyx_pw_10cmeshTools_5CMesh_22elementBoundariesArray_5__del__(PyObject *__pyx_v_self);
6887 static int __pyx_pw_10cmeshTools_5CMesh_22elementBoundariesArray_5__del__(PyObject *__pyx_v_self) {
6889 __Pyx_RefNannyDeclarations
6890 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
6891 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_22elementBoundariesArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
6894 __Pyx_RefNannyFinishContext();
6898 static int __pyx_pf_10cmeshTools_5CMesh_22elementBoundariesArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
6900 __Pyx_RefNannyDeclarations
6901 __Pyx_RefNannySetupContext(
"__del__", 0);
6902 __Pyx_INCREF(Py_None);
6903 __Pyx_GIVEREF(Py_None);
6904 __Pyx_GOTREF(__pyx_v_self->elementBoundariesArray);
6905 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundariesArray));
6906 __pyx_v_self->elementBoundariesArray = ((PyArrayObject *)Py_None);
6910 __Pyx_RefNannyFinishContext();
6923 static PyObject *__pyx_pw_10cmeshTools_5CMesh_25elementBoundaryNodesArray_1__get__(PyObject *__pyx_v_self);
6924 static PyObject *__pyx_pw_10cmeshTools_5CMesh_25elementBoundaryNodesArray_1__get__(PyObject *__pyx_v_self) {
6925 PyObject *__pyx_r = 0;
6926 __Pyx_RefNannyDeclarations
6927 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
6928 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_25elementBoundaryNodesArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
6931 __Pyx_RefNannyFinishContext();
6935 static PyObject *__pyx_pf_10cmeshTools_5CMesh_25elementBoundaryNodesArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
6936 PyObject *__pyx_r = NULL;
6937 __Pyx_RefNannyDeclarations
6938 __Pyx_RefNannySetupContext(
"__get__", 0);
6939 __Pyx_XDECREF(__pyx_r);
6940 __Pyx_INCREF(((PyObject *)__pyx_v_self->elementBoundaryNodesArray));
6941 __pyx_r = ((PyObject *)__pyx_v_self->elementBoundaryNodesArray);
6946 __Pyx_XGIVEREF(__pyx_r);
6947 __Pyx_RefNannyFinishContext();
6952 static int __pyx_pw_10cmeshTools_5CMesh_25elementBoundaryNodesArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
6953 static int __pyx_pw_10cmeshTools_5CMesh_25elementBoundaryNodesArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
6955 __Pyx_RefNannyDeclarations
6956 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
6957 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_25elementBoundaryNodesArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
6960 __Pyx_RefNannyFinishContext();
6964 static int __pyx_pf_10cmeshTools_5CMesh_25elementBoundaryNodesArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
6966 __Pyx_RefNannyDeclarations
6967 PyObject *__pyx_t_1 = NULL;
6968 __Pyx_RefNannySetupContext(
"__set__", 0);
6969 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 42, __pyx_L1_error)
6970 __pyx_t_1 = __pyx_v_value;
6971 __Pyx_INCREF(__pyx_t_1);
6972 __Pyx_GIVEREF(__pyx_t_1);
6973 __Pyx_GOTREF(__pyx_v_self->elementBoundaryNodesArray);
6974 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryNodesArray));
6975 __pyx_v_self->elementBoundaryNodesArray = ((PyArrayObject *)__pyx_t_1);
6982 __Pyx_XDECREF(__pyx_t_1);
6983 __Pyx_AddTraceback(
"cmeshTools.CMesh.elementBoundaryNodesArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
6986 __Pyx_RefNannyFinishContext();
6991 static int __pyx_pw_10cmeshTools_5CMesh_25elementBoundaryNodesArray_5__del__(PyObject *__pyx_v_self);
6992 static int __pyx_pw_10cmeshTools_5CMesh_25elementBoundaryNodesArray_5__del__(PyObject *__pyx_v_self) {
6994 __Pyx_RefNannyDeclarations
6995 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
6996 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_25elementBoundaryNodesArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
6999 __Pyx_RefNannyFinishContext();
7003 static int __pyx_pf_10cmeshTools_5CMesh_25elementBoundaryNodesArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7005 __Pyx_RefNannyDeclarations
7006 __Pyx_RefNannySetupContext(
"__del__", 0);
7007 __Pyx_INCREF(Py_None);
7008 __Pyx_GIVEREF(Py_None);
7009 __Pyx_GOTREF(__pyx_v_self->elementBoundaryNodesArray);
7010 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryNodesArray));
7011 __pyx_v_self->elementBoundaryNodesArray = ((PyArrayObject *)Py_None);
7015 __Pyx_RefNannyFinishContext();
7028 static PyObject *__pyx_pw_10cmeshTools_5CMesh_28elementBoundaryElementsArray_1__get__(PyObject *__pyx_v_self);
7029 static PyObject *__pyx_pw_10cmeshTools_5CMesh_28elementBoundaryElementsArray_1__get__(PyObject *__pyx_v_self) {
7030 PyObject *__pyx_r = 0;
7031 __Pyx_RefNannyDeclarations
7032 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
7033 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_28elementBoundaryElementsArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7036 __Pyx_RefNannyFinishContext();
7040 static PyObject *__pyx_pf_10cmeshTools_5CMesh_28elementBoundaryElementsArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7041 PyObject *__pyx_r = NULL;
7042 __Pyx_RefNannyDeclarations
7043 __Pyx_RefNannySetupContext(
"__get__", 0);
7044 __Pyx_XDECREF(__pyx_r);
7045 __Pyx_INCREF(((PyObject *)__pyx_v_self->elementBoundaryElementsArray));
7046 __pyx_r = ((PyObject *)__pyx_v_self->elementBoundaryElementsArray);
7051 __Pyx_XGIVEREF(__pyx_r);
7052 __Pyx_RefNannyFinishContext();
7057 static int __pyx_pw_10cmeshTools_5CMesh_28elementBoundaryElementsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
7058 static int __pyx_pw_10cmeshTools_5CMesh_28elementBoundaryElementsArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
7060 __Pyx_RefNannyDeclarations
7061 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
7062 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_28elementBoundaryElementsArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
7065 __Pyx_RefNannyFinishContext();
7069 static int __pyx_pf_10cmeshTools_5CMesh_28elementBoundaryElementsArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
7071 __Pyx_RefNannyDeclarations
7072 PyObject *__pyx_t_1 = NULL;
7073 __Pyx_RefNannySetupContext(
"__set__", 0);
7074 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 43, __pyx_L1_error)
7075 __pyx_t_1 = __pyx_v_value;
7076 __Pyx_INCREF(__pyx_t_1);
7077 __Pyx_GIVEREF(__pyx_t_1);
7078 __Pyx_GOTREF(__pyx_v_self->elementBoundaryElementsArray);
7079 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryElementsArray));
7080 __pyx_v_self->elementBoundaryElementsArray = ((PyArrayObject *)__pyx_t_1);
7087 __Pyx_XDECREF(__pyx_t_1);
7088 __Pyx_AddTraceback(
"cmeshTools.CMesh.elementBoundaryElementsArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7091 __Pyx_RefNannyFinishContext();
7096 static int __pyx_pw_10cmeshTools_5CMesh_28elementBoundaryElementsArray_5__del__(PyObject *__pyx_v_self);
7097 static int __pyx_pw_10cmeshTools_5CMesh_28elementBoundaryElementsArray_5__del__(PyObject *__pyx_v_self) {
7099 __Pyx_RefNannyDeclarations
7100 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
7101 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_28elementBoundaryElementsArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7104 __Pyx_RefNannyFinishContext();
7108 static int __pyx_pf_10cmeshTools_5CMesh_28elementBoundaryElementsArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7110 __Pyx_RefNannyDeclarations
7111 __Pyx_RefNannySetupContext(
"__del__", 0);
7112 __Pyx_INCREF(Py_None);
7113 __Pyx_GIVEREF(Py_None);
7114 __Pyx_GOTREF(__pyx_v_self->elementBoundaryElementsArray);
7115 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryElementsArray));
7116 __pyx_v_self->elementBoundaryElementsArray = ((PyArrayObject *)Py_None);
7120 __Pyx_RefNannyFinishContext();
7133 static PyObject *__pyx_pw_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray_1__get__(PyObject *__pyx_v_self);
7134 static PyObject *__pyx_pw_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray_1__get__(PyObject *__pyx_v_self) {
7135 PyObject *__pyx_r = 0;
7136 __Pyx_RefNannyDeclarations
7137 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
7138 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7141 __Pyx_RefNannyFinishContext();
7145 static PyObject *__pyx_pf_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7146 PyObject *__pyx_r = NULL;
7147 __Pyx_RefNannyDeclarations
7148 __Pyx_RefNannySetupContext(
"__get__", 0);
7149 __Pyx_XDECREF(__pyx_r);
7150 __Pyx_INCREF(((PyObject *)__pyx_v_self->elementBoundaryLocalElementBoundariesArray));
7151 __pyx_r = ((PyObject *)__pyx_v_self->elementBoundaryLocalElementBoundariesArray);
7156 __Pyx_XGIVEREF(__pyx_r);
7157 __Pyx_RefNannyFinishContext();
7162 static int __pyx_pw_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
7163 static int __pyx_pw_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
7165 __Pyx_RefNannyDeclarations
7166 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
7167 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
7170 __Pyx_RefNannyFinishContext();
7174 static int __pyx_pf_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
7176 __Pyx_RefNannyDeclarations
7177 PyObject *__pyx_t_1 = NULL;
7178 __Pyx_RefNannySetupContext(
"__set__", 0);
7179 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 44, __pyx_L1_error)
7180 __pyx_t_1 = __pyx_v_value;
7181 __Pyx_INCREF(__pyx_t_1);
7182 __Pyx_GIVEREF(__pyx_t_1);
7183 __Pyx_GOTREF(__pyx_v_self->elementBoundaryLocalElementBoundariesArray);
7184 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryLocalElementBoundariesArray));
7185 __pyx_v_self->elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)__pyx_t_1);
7192 __Pyx_XDECREF(__pyx_t_1);
7193 __Pyx_AddTraceback(
"cmeshTools.CMesh.elementBoundaryLocalElementBoundariesArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7196 __Pyx_RefNannyFinishContext();
7201 static int __pyx_pw_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray_5__del__(PyObject *__pyx_v_self);
7202 static int __pyx_pw_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray_5__del__(PyObject *__pyx_v_self) {
7204 __Pyx_RefNannyDeclarations
7205 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
7206 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7209 __Pyx_RefNannyFinishContext();
7213 static int __pyx_pf_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7215 __Pyx_RefNannyDeclarations
7216 __Pyx_RefNannySetupContext(
"__del__", 0);
7217 __Pyx_INCREF(Py_None);
7218 __Pyx_GIVEREF(Py_None);
7219 __Pyx_GOTREF(__pyx_v_self->elementBoundaryLocalElementBoundariesArray);
7220 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryLocalElementBoundariesArray));
7221 __pyx_v_self->elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)Py_None);
7225 __Pyx_RefNannyFinishContext();
7238 static PyObject *__pyx_pw_10cmeshTools_5CMesh_30interiorElementBoundariesArray_1__get__(PyObject *__pyx_v_self);
7239 static PyObject *__pyx_pw_10cmeshTools_5CMesh_30interiorElementBoundariesArray_1__get__(PyObject *__pyx_v_self) {
7240 PyObject *__pyx_r = 0;
7241 __Pyx_RefNannyDeclarations
7242 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
7243 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_30interiorElementBoundariesArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7246 __Pyx_RefNannyFinishContext();
7250 static PyObject *__pyx_pf_10cmeshTools_5CMesh_30interiorElementBoundariesArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7251 PyObject *__pyx_r = NULL;
7252 __Pyx_RefNannyDeclarations
7253 __Pyx_RefNannySetupContext(
"__get__", 0);
7254 __Pyx_XDECREF(__pyx_r);
7255 __Pyx_INCREF(((PyObject *)__pyx_v_self->interiorElementBoundariesArray));
7256 __pyx_r = ((PyObject *)__pyx_v_self->interiorElementBoundariesArray);
7261 __Pyx_XGIVEREF(__pyx_r);
7262 __Pyx_RefNannyFinishContext();
7267 static int __pyx_pw_10cmeshTools_5CMesh_30interiorElementBoundariesArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
7268 static int __pyx_pw_10cmeshTools_5CMesh_30interiorElementBoundariesArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
7270 __Pyx_RefNannyDeclarations
7271 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
7272 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_30interiorElementBoundariesArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
7275 __Pyx_RefNannyFinishContext();
7279 static int __pyx_pf_10cmeshTools_5CMesh_30interiorElementBoundariesArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
7281 __Pyx_RefNannyDeclarations
7282 PyObject *__pyx_t_1 = NULL;
7283 __Pyx_RefNannySetupContext(
"__set__", 0);
7284 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 45, __pyx_L1_error)
7285 __pyx_t_1 = __pyx_v_value;
7286 __Pyx_INCREF(__pyx_t_1);
7287 __Pyx_GIVEREF(__pyx_t_1);
7288 __Pyx_GOTREF(__pyx_v_self->interiorElementBoundariesArray);
7289 __Pyx_DECREF(((PyObject *)__pyx_v_self->interiorElementBoundariesArray));
7290 __pyx_v_self->interiorElementBoundariesArray = ((PyArrayObject *)__pyx_t_1);
7297 __Pyx_XDECREF(__pyx_t_1);
7298 __Pyx_AddTraceback(
"cmeshTools.CMesh.interiorElementBoundariesArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7301 __Pyx_RefNannyFinishContext();
7306 static int __pyx_pw_10cmeshTools_5CMesh_30interiorElementBoundariesArray_5__del__(PyObject *__pyx_v_self);
7307 static int __pyx_pw_10cmeshTools_5CMesh_30interiorElementBoundariesArray_5__del__(PyObject *__pyx_v_self) {
7309 __Pyx_RefNannyDeclarations
7310 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
7311 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_30interiorElementBoundariesArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7314 __Pyx_RefNannyFinishContext();
7318 static int __pyx_pf_10cmeshTools_5CMesh_30interiorElementBoundariesArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7320 __Pyx_RefNannyDeclarations
7321 __Pyx_RefNannySetupContext(
"__del__", 0);
7322 __Pyx_INCREF(Py_None);
7323 __Pyx_GIVEREF(Py_None);
7324 __Pyx_GOTREF(__pyx_v_self->interiorElementBoundariesArray);
7325 __Pyx_DECREF(((PyObject *)__pyx_v_self->interiorElementBoundariesArray));
7326 __pyx_v_self->interiorElementBoundariesArray = ((PyArrayObject *)Py_None);
7330 __Pyx_RefNannyFinishContext();
7343 static PyObject *__pyx_pw_10cmeshTools_5CMesh_30exteriorElementBoundariesArray_1__get__(PyObject *__pyx_v_self);
7344 static PyObject *__pyx_pw_10cmeshTools_5CMesh_30exteriorElementBoundariesArray_1__get__(PyObject *__pyx_v_self) {
7345 PyObject *__pyx_r = 0;
7346 __Pyx_RefNannyDeclarations
7347 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
7348 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_30exteriorElementBoundariesArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7351 __Pyx_RefNannyFinishContext();
7355 static PyObject *__pyx_pf_10cmeshTools_5CMesh_30exteriorElementBoundariesArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7356 PyObject *__pyx_r = NULL;
7357 __Pyx_RefNannyDeclarations
7358 __Pyx_RefNannySetupContext(
"__get__", 0);
7359 __Pyx_XDECREF(__pyx_r);
7360 __Pyx_INCREF(((PyObject *)__pyx_v_self->exteriorElementBoundariesArray));
7361 __pyx_r = ((PyObject *)__pyx_v_self->exteriorElementBoundariesArray);
7366 __Pyx_XGIVEREF(__pyx_r);
7367 __Pyx_RefNannyFinishContext();
7372 static int __pyx_pw_10cmeshTools_5CMesh_30exteriorElementBoundariesArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
7373 static int __pyx_pw_10cmeshTools_5CMesh_30exteriorElementBoundariesArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
7375 __Pyx_RefNannyDeclarations
7376 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
7377 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_30exteriorElementBoundariesArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
7380 __Pyx_RefNannyFinishContext();
7384 static int __pyx_pf_10cmeshTools_5CMesh_30exteriorElementBoundariesArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
7386 __Pyx_RefNannyDeclarations
7387 PyObject *__pyx_t_1 = NULL;
7388 __Pyx_RefNannySetupContext(
"__set__", 0);
7389 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 46, __pyx_L1_error)
7390 __pyx_t_1 = __pyx_v_value;
7391 __Pyx_INCREF(__pyx_t_1);
7392 __Pyx_GIVEREF(__pyx_t_1);
7393 __Pyx_GOTREF(__pyx_v_self->exteriorElementBoundariesArray);
7394 __Pyx_DECREF(((PyObject *)__pyx_v_self->exteriorElementBoundariesArray));
7395 __pyx_v_self->exteriorElementBoundariesArray = ((PyArrayObject *)__pyx_t_1);
7402 __Pyx_XDECREF(__pyx_t_1);
7403 __Pyx_AddTraceback(
"cmeshTools.CMesh.exteriorElementBoundariesArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7406 __Pyx_RefNannyFinishContext();
7411 static int __pyx_pw_10cmeshTools_5CMesh_30exteriorElementBoundariesArray_5__del__(PyObject *__pyx_v_self);
7412 static int __pyx_pw_10cmeshTools_5CMesh_30exteriorElementBoundariesArray_5__del__(PyObject *__pyx_v_self) {
7414 __Pyx_RefNannyDeclarations
7415 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
7416 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_30exteriorElementBoundariesArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7419 __Pyx_RefNannyFinishContext();
7423 static int __pyx_pf_10cmeshTools_5CMesh_30exteriorElementBoundariesArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7425 __Pyx_RefNannyDeclarations
7426 __Pyx_RefNannySetupContext(
"__del__", 0);
7427 __Pyx_INCREF(Py_None);
7428 __Pyx_GIVEREF(Py_None);
7429 __Pyx_GOTREF(__pyx_v_self->exteriorElementBoundariesArray);
7430 __Pyx_DECREF(((PyObject *)__pyx_v_self->exteriorElementBoundariesArray));
7431 __pyx_v_self->exteriorElementBoundariesArray = ((PyArrayObject *)Py_None);
7435 __Pyx_RefNannyFinishContext();
7448 static PyObject *__pyx_pw_10cmeshTools_5CMesh_14edgeNodesArray_1__get__(PyObject *__pyx_v_self);
7449 static PyObject *__pyx_pw_10cmeshTools_5CMesh_14edgeNodesArray_1__get__(PyObject *__pyx_v_self) {
7450 PyObject *__pyx_r = 0;
7451 __Pyx_RefNannyDeclarations
7452 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
7453 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_14edgeNodesArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7456 __Pyx_RefNannyFinishContext();
7460 static PyObject *__pyx_pf_10cmeshTools_5CMesh_14edgeNodesArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7461 PyObject *__pyx_r = NULL;
7462 __Pyx_RefNannyDeclarations
7463 __Pyx_RefNannySetupContext(
"__get__", 0);
7464 __Pyx_XDECREF(__pyx_r);
7465 __Pyx_INCREF(((PyObject *)__pyx_v_self->edgeNodesArray));
7466 __pyx_r = ((PyObject *)__pyx_v_self->edgeNodesArray);
7471 __Pyx_XGIVEREF(__pyx_r);
7472 __Pyx_RefNannyFinishContext();
7477 static int __pyx_pw_10cmeshTools_5CMesh_14edgeNodesArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
7478 static int __pyx_pw_10cmeshTools_5CMesh_14edgeNodesArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
7480 __Pyx_RefNannyDeclarations
7481 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
7482 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_14edgeNodesArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
7485 __Pyx_RefNannyFinishContext();
7489 static int __pyx_pf_10cmeshTools_5CMesh_14edgeNodesArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
7491 __Pyx_RefNannyDeclarations
7492 PyObject *__pyx_t_1 = NULL;
7493 __Pyx_RefNannySetupContext(
"__set__", 0);
7494 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 47, __pyx_L1_error)
7495 __pyx_t_1 = __pyx_v_value;
7496 __Pyx_INCREF(__pyx_t_1);
7497 __Pyx_GIVEREF(__pyx_t_1);
7498 __Pyx_GOTREF(__pyx_v_self->edgeNodesArray);
7499 __Pyx_DECREF(((PyObject *)__pyx_v_self->edgeNodesArray));
7500 __pyx_v_self->edgeNodesArray = ((PyArrayObject *)__pyx_t_1);
7507 __Pyx_XDECREF(__pyx_t_1);
7508 __Pyx_AddTraceback(
"cmeshTools.CMesh.edgeNodesArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7511 __Pyx_RefNannyFinishContext();
7516 static int __pyx_pw_10cmeshTools_5CMesh_14edgeNodesArray_5__del__(PyObject *__pyx_v_self);
7517 static int __pyx_pw_10cmeshTools_5CMesh_14edgeNodesArray_5__del__(PyObject *__pyx_v_self) {
7519 __Pyx_RefNannyDeclarations
7520 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
7521 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_14edgeNodesArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7524 __Pyx_RefNannyFinishContext();
7528 static int __pyx_pf_10cmeshTools_5CMesh_14edgeNodesArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7530 __Pyx_RefNannyDeclarations
7531 __Pyx_RefNannySetupContext(
"__del__", 0);
7532 __Pyx_INCREF(Py_None);
7533 __Pyx_GIVEREF(Py_None);
7534 __Pyx_GOTREF(__pyx_v_self->edgeNodesArray);
7535 __Pyx_DECREF(((PyObject *)__pyx_v_self->edgeNodesArray));
7536 __pyx_v_self->edgeNodesArray = ((PyArrayObject *)Py_None);
7540 __Pyx_RefNannyFinishContext();
7553 static PyObject *__pyx_pw_10cmeshTools_5CMesh_13nodeStarArray_1__get__(PyObject *__pyx_v_self);
7554 static PyObject *__pyx_pw_10cmeshTools_5CMesh_13nodeStarArray_1__get__(PyObject *__pyx_v_self) {
7555 PyObject *__pyx_r = 0;
7556 __Pyx_RefNannyDeclarations
7557 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
7558 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_13nodeStarArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7561 __Pyx_RefNannyFinishContext();
7565 static PyObject *__pyx_pf_10cmeshTools_5CMesh_13nodeStarArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7566 PyObject *__pyx_r = NULL;
7567 __Pyx_RefNannyDeclarations
7568 __Pyx_RefNannySetupContext(
"__get__", 0);
7569 __Pyx_XDECREF(__pyx_r);
7570 __Pyx_INCREF(((PyObject *)__pyx_v_self->nodeStarArray));
7571 __pyx_r = ((PyObject *)__pyx_v_self->nodeStarArray);
7576 __Pyx_XGIVEREF(__pyx_r);
7577 __Pyx_RefNannyFinishContext();
7582 static int __pyx_pw_10cmeshTools_5CMesh_13nodeStarArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
7583 static int __pyx_pw_10cmeshTools_5CMesh_13nodeStarArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
7585 __Pyx_RefNannyDeclarations
7586 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
7587 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_13nodeStarArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
7590 __Pyx_RefNannyFinishContext();
7594 static int __pyx_pf_10cmeshTools_5CMesh_13nodeStarArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
7596 __Pyx_RefNannyDeclarations
7597 PyObject *__pyx_t_1 = NULL;
7598 __Pyx_RefNannySetupContext(
"__set__", 0);
7599 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 48, __pyx_L1_error)
7600 __pyx_t_1 = __pyx_v_value;
7601 __Pyx_INCREF(__pyx_t_1);
7602 __Pyx_GIVEREF(__pyx_t_1);
7603 __Pyx_GOTREF(__pyx_v_self->nodeStarArray);
7604 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeStarArray));
7605 __pyx_v_self->nodeStarArray = ((PyArrayObject *)__pyx_t_1);
7612 __Pyx_XDECREF(__pyx_t_1);
7613 __Pyx_AddTraceback(
"cmeshTools.CMesh.nodeStarArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7616 __Pyx_RefNannyFinishContext();
7621 static int __pyx_pw_10cmeshTools_5CMesh_13nodeStarArray_5__del__(PyObject *__pyx_v_self);
7622 static int __pyx_pw_10cmeshTools_5CMesh_13nodeStarArray_5__del__(PyObject *__pyx_v_self) {
7624 __Pyx_RefNannyDeclarations
7625 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
7626 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_13nodeStarArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7629 __Pyx_RefNannyFinishContext();
7633 static int __pyx_pf_10cmeshTools_5CMesh_13nodeStarArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7635 __Pyx_RefNannyDeclarations
7636 __Pyx_RefNannySetupContext(
"__del__", 0);
7637 __Pyx_INCREF(Py_None);
7638 __Pyx_GIVEREF(Py_None);
7639 __Pyx_GOTREF(__pyx_v_self->nodeStarArray);
7640 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeStarArray));
7641 __pyx_v_self->nodeStarArray = ((PyArrayObject *)Py_None);
7645 __Pyx_RefNannyFinishContext();
7658 static PyObject *__pyx_pw_10cmeshTools_5CMesh_15nodeStarOffsets_1__get__(PyObject *__pyx_v_self);
7659 static PyObject *__pyx_pw_10cmeshTools_5CMesh_15nodeStarOffsets_1__get__(PyObject *__pyx_v_self) {
7660 PyObject *__pyx_r = 0;
7661 __Pyx_RefNannyDeclarations
7662 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
7663 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_15nodeStarOffsets___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7666 __Pyx_RefNannyFinishContext();
7670 static PyObject *__pyx_pf_10cmeshTools_5CMesh_15nodeStarOffsets___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7671 PyObject *__pyx_r = NULL;
7672 __Pyx_RefNannyDeclarations
7673 __Pyx_RefNannySetupContext(
"__get__", 0);
7674 __Pyx_XDECREF(__pyx_r);
7675 __Pyx_INCREF(((PyObject *)__pyx_v_self->nodeStarOffsets));
7676 __pyx_r = ((PyObject *)__pyx_v_self->nodeStarOffsets);
7681 __Pyx_XGIVEREF(__pyx_r);
7682 __Pyx_RefNannyFinishContext();
7687 static int __pyx_pw_10cmeshTools_5CMesh_15nodeStarOffsets_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
7688 static int __pyx_pw_10cmeshTools_5CMesh_15nodeStarOffsets_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
7690 __Pyx_RefNannyDeclarations
7691 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
7692 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_15nodeStarOffsets_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
7695 __Pyx_RefNannyFinishContext();
7699 static int __pyx_pf_10cmeshTools_5CMesh_15nodeStarOffsets_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
7701 __Pyx_RefNannyDeclarations
7702 PyObject *__pyx_t_1 = NULL;
7703 __Pyx_RefNannySetupContext(
"__set__", 0);
7704 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 49, __pyx_L1_error)
7705 __pyx_t_1 = __pyx_v_value;
7706 __Pyx_INCREF(__pyx_t_1);
7707 __Pyx_GIVEREF(__pyx_t_1);
7708 __Pyx_GOTREF(__pyx_v_self->nodeStarOffsets);
7709 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeStarOffsets));
7710 __pyx_v_self->nodeStarOffsets = ((PyArrayObject *)__pyx_t_1);
7717 __Pyx_XDECREF(__pyx_t_1);
7718 __Pyx_AddTraceback(
"cmeshTools.CMesh.nodeStarOffsets.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7721 __Pyx_RefNannyFinishContext();
7726 static int __pyx_pw_10cmeshTools_5CMesh_15nodeStarOffsets_5__del__(PyObject *__pyx_v_self);
7727 static int __pyx_pw_10cmeshTools_5CMesh_15nodeStarOffsets_5__del__(PyObject *__pyx_v_self) {
7729 __Pyx_RefNannyDeclarations
7730 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
7731 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_15nodeStarOffsets_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7734 __Pyx_RefNannyFinishContext();
7738 static int __pyx_pf_10cmeshTools_5CMesh_15nodeStarOffsets_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7740 __Pyx_RefNannyDeclarations
7741 __Pyx_RefNannySetupContext(
"__del__", 0);
7742 __Pyx_INCREF(Py_None);
7743 __Pyx_GIVEREF(Py_None);
7744 __Pyx_GOTREF(__pyx_v_self->nodeStarOffsets);
7745 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeStarOffsets));
7746 __pyx_v_self->nodeStarOffsets = ((PyArrayObject *)Py_None);
7750 __Pyx_RefNannyFinishContext();
7763 static PyObject *__pyx_pw_10cmeshTools_5CMesh_20elementMaterialTypes_1__get__(PyObject *__pyx_v_self);
7764 static PyObject *__pyx_pw_10cmeshTools_5CMesh_20elementMaterialTypes_1__get__(PyObject *__pyx_v_self) {
7765 PyObject *__pyx_r = 0;
7766 __Pyx_RefNannyDeclarations
7767 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
7768 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_20elementMaterialTypes___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7771 __Pyx_RefNannyFinishContext();
7775 static PyObject *__pyx_pf_10cmeshTools_5CMesh_20elementMaterialTypes___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7776 PyObject *__pyx_r = NULL;
7777 __Pyx_RefNannyDeclarations
7778 __Pyx_RefNannySetupContext(
"__get__", 0);
7779 __Pyx_XDECREF(__pyx_r);
7780 __Pyx_INCREF(((PyObject *)__pyx_v_self->elementMaterialTypes));
7781 __pyx_r = ((PyObject *)__pyx_v_self->elementMaterialTypes);
7786 __Pyx_XGIVEREF(__pyx_r);
7787 __Pyx_RefNannyFinishContext();
7792 static int __pyx_pw_10cmeshTools_5CMesh_20elementMaterialTypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
7793 static int __pyx_pw_10cmeshTools_5CMesh_20elementMaterialTypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
7795 __Pyx_RefNannyDeclarations
7796 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
7797 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_20elementMaterialTypes_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
7800 __Pyx_RefNannyFinishContext();
7804 static int __pyx_pf_10cmeshTools_5CMesh_20elementMaterialTypes_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
7806 __Pyx_RefNannyDeclarations
7807 PyObject *__pyx_t_1 = NULL;
7808 __Pyx_RefNannySetupContext(
"__set__", 0);
7809 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 50, __pyx_L1_error)
7810 __pyx_t_1 = __pyx_v_value;
7811 __Pyx_INCREF(__pyx_t_1);
7812 __Pyx_GIVEREF(__pyx_t_1);
7813 __Pyx_GOTREF(__pyx_v_self->elementMaterialTypes);
7814 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementMaterialTypes));
7815 __pyx_v_self->elementMaterialTypes = ((PyArrayObject *)__pyx_t_1);
7822 __Pyx_XDECREF(__pyx_t_1);
7823 __Pyx_AddTraceback(
"cmeshTools.CMesh.elementMaterialTypes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7826 __Pyx_RefNannyFinishContext();
7831 static int __pyx_pw_10cmeshTools_5CMesh_20elementMaterialTypes_5__del__(PyObject *__pyx_v_self);
7832 static int __pyx_pw_10cmeshTools_5CMesh_20elementMaterialTypes_5__del__(PyObject *__pyx_v_self) {
7834 __Pyx_RefNannyDeclarations
7835 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
7836 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_20elementMaterialTypes_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7839 __Pyx_RefNannyFinishContext();
7843 static int __pyx_pf_10cmeshTools_5CMesh_20elementMaterialTypes_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7845 __Pyx_RefNannyDeclarations
7846 __Pyx_RefNannySetupContext(
"__del__", 0);
7847 __Pyx_INCREF(Py_None);
7848 __Pyx_GIVEREF(Py_None);
7849 __Pyx_GOTREF(__pyx_v_self->elementMaterialTypes);
7850 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementMaterialTypes));
7851 __pyx_v_self->elementMaterialTypes = ((PyArrayObject *)Py_None);
7855 __Pyx_RefNannyFinishContext();
7868 static PyObject *__pyx_pw_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes_1__get__(PyObject *__pyx_v_self);
7869 static PyObject *__pyx_pw_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes_1__get__(PyObject *__pyx_v_self) {
7870 PyObject *__pyx_r = 0;
7871 __Pyx_RefNannyDeclarations
7872 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
7873 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7876 __Pyx_RefNannyFinishContext();
7880 static PyObject *__pyx_pf_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7881 PyObject *__pyx_r = NULL;
7882 __Pyx_RefNannyDeclarations
7883 __Pyx_RefNannySetupContext(
"__get__", 0);
7884 __Pyx_XDECREF(__pyx_r);
7885 __Pyx_INCREF(((PyObject *)__pyx_v_self->elementBoundaryMaterialTypes));
7886 __pyx_r = ((PyObject *)__pyx_v_self->elementBoundaryMaterialTypes);
7891 __Pyx_XGIVEREF(__pyx_r);
7892 __Pyx_RefNannyFinishContext();
7897 static int __pyx_pw_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
7898 static int __pyx_pw_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
7900 __Pyx_RefNannyDeclarations
7901 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
7902 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
7905 __Pyx_RefNannyFinishContext();
7909 static int __pyx_pf_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
7911 __Pyx_RefNannyDeclarations
7912 PyObject *__pyx_t_1 = NULL;
7913 __Pyx_RefNannySetupContext(
"__set__", 0);
7914 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 51, __pyx_L1_error)
7915 __pyx_t_1 = __pyx_v_value;
7916 __Pyx_INCREF(__pyx_t_1);
7917 __Pyx_GIVEREF(__pyx_t_1);
7918 __Pyx_GOTREF(__pyx_v_self->elementBoundaryMaterialTypes);
7919 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryMaterialTypes));
7920 __pyx_v_self->elementBoundaryMaterialTypes = ((PyArrayObject *)__pyx_t_1);
7927 __Pyx_XDECREF(__pyx_t_1);
7928 __Pyx_AddTraceback(
"cmeshTools.CMesh.elementBoundaryMaterialTypes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
7931 __Pyx_RefNannyFinishContext();
7936 static int __pyx_pw_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes_5__del__(PyObject *__pyx_v_self);
7937 static int __pyx_pw_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes_5__del__(PyObject *__pyx_v_self) {
7939 __Pyx_RefNannyDeclarations
7940 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
7941 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7944 __Pyx_RefNannyFinishContext();
7948 static int __pyx_pf_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7950 __Pyx_RefNannyDeclarations
7951 __Pyx_RefNannySetupContext(
"__del__", 0);
7952 __Pyx_INCREF(Py_None);
7953 __Pyx_GIVEREF(Py_None);
7954 __Pyx_GOTREF(__pyx_v_self->elementBoundaryMaterialTypes);
7955 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryMaterialTypes));
7956 __pyx_v_self->elementBoundaryMaterialTypes = ((PyArrayObject *)Py_None);
7960 __Pyx_RefNannyFinishContext();
7973 static PyObject *__pyx_pw_10cmeshTools_5CMesh_17nodeMaterialTypes_1__get__(PyObject *__pyx_v_self);
7974 static PyObject *__pyx_pw_10cmeshTools_5CMesh_17nodeMaterialTypes_1__get__(PyObject *__pyx_v_self) {
7975 PyObject *__pyx_r = 0;
7976 __Pyx_RefNannyDeclarations
7977 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
7978 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_17nodeMaterialTypes___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
7981 __Pyx_RefNannyFinishContext();
7985 static PyObject *__pyx_pf_10cmeshTools_5CMesh_17nodeMaterialTypes___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
7986 PyObject *__pyx_r = NULL;
7987 __Pyx_RefNannyDeclarations
7988 __Pyx_RefNannySetupContext(
"__get__", 0);
7989 __Pyx_XDECREF(__pyx_r);
7990 __Pyx_INCREF(((PyObject *)__pyx_v_self->nodeMaterialTypes));
7991 __pyx_r = ((PyObject *)__pyx_v_self->nodeMaterialTypes);
7996 __Pyx_XGIVEREF(__pyx_r);
7997 __Pyx_RefNannyFinishContext();
8002 static int __pyx_pw_10cmeshTools_5CMesh_17nodeMaterialTypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
8003 static int __pyx_pw_10cmeshTools_5CMesh_17nodeMaterialTypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8005 __Pyx_RefNannyDeclarations
8006 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
8007 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_17nodeMaterialTypes_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8010 __Pyx_RefNannyFinishContext();
8014 static int __pyx_pf_10cmeshTools_5CMesh_17nodeMaterialTypes_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
8016 __Pyx_RefNannyDeclarations
8017 PyObject *__pyx_t_1 = NULL;
8018 __Pyx_RefNannySetupContext(
"__set__", 0);
8019 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 52, __pyx_L1_error)
8020 __pyx_t_1 = __pyx_v_value;
8021 __Pyx_INCREF(__pyx_t_1);
8022 __Pyx_GIVEREF(__pyx_t_1);
8023 __Pyx_GOTREF(__pyx_v_self->nodeMaterialTypes);
8024 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeMaterialTypes));
8025 __pyx_v_self->nodeMaterialTypes = ((PyArrayObject *)__pyx_t_1);
8032 __Pyx_XDECREF(__pyx_t_1);
8033 __Pyx_AddTraceback(
"cmeshTools.CMesh.nodeMaterialTypes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8036 __Pyx_RefNannyFinishContext();
8041 static int __pyx_pw_10cmeshTools_5CMesh_17nodeMaterialTypes_5__del__(PyObject *__pyx_v_self);
8042 static int __pyx_pw_10cmeshTools_5CMesh_17nodeMaterialTypes_5__del__(PyObject *__pyx_v_self) {
8044 __Pyx_RefNannyDeclarations
8045 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
8046 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_17nodeMaterialTypes_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
8049 __Pyx_RefNannyFinishContext();
8053 static int __pyx_pf_10cmeshTools_5CMesh_17nodeMaterialTypes_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
8055 __Pyx_RefNannyDeclarations
8056 __Pyx_RefNannySetupContext(
"__del__", 0);
8057 __Pyx_INCREF(Py_None);
8058 __Pyx_GIVEREF(Py_None);
8059 __Pyx_GOTREF(__pyx_v_self->nodeMaterialTypes);
8060 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeMaterialTypes));
8061 __pyx_v_self->nodeMaterialTypes = ((PyArrayObject *)Py_None);
8065 __Pyx_RefNannyFinishContext();
8078 static PyObject *__pyx_pw_10cmeshTools_5CMesh_9nodeArray_1__get__(PyObject *__pyx_v_self);
8079 static PyObject *__pyx_pw_10cmeshTools_5CMesh_9nodeArray_1__get__(PyObject *__pyx_v_self) {
8080 PyObject *__pyx_r = 0;
8081 __Pyx_RefNannyDeclarations
8082 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
8083 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_9nodeArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
8086 __Pyx_RefNannyFinishContext();
8090 static PyObject *__pyx_pf_10cmeshTools_5CMesh_9nodeArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
8091 PyObject *__pyx_r = NULL;
8092 __Pyx_RefNannyDeclarations
8093 __Pyx_RefNannySetupContext(
"__get__", 0);
8094 __Pyx_XDECREF(__pyx_r);
8095 __Pyx_INCREF(((PyObject *)__pyx_v_self->nodeArray));
8096 __pyx_r = ((PyObject *)__pyx_v_self->nodeArray);
8101 __Pyx_XGIVEREF(__pyx_r);
8102 __Pyx_RefNannyFinishContext();
8107 static int __pyx_pw_10cmeshTools_5CMesh_9nodeArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
8108 static int __pyx_pw_10cmeshTools_5CMesh_9nodeArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8110 __Pyx_RefNannyDeclarations
8111 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
8112 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_9nodeArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8115 __Pyx_RefNannyFinishContext();
8119 static int __pyx_pf_10cmeshTools_5CMesh_9nodeArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
8121 __Pyx_RefNannyDeclarations
8122 PyObject *__pyx_t_1 = NULL;
8123 __Pyx_RefNannySetupContext(
"__set__", 0);
8124 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 53, __pyx_L1_error)
8125 __pyx_t_1 = __pyx_v_value;
8126 __Pyx_INCREF(__pyx_t_1);
8127 __Pyx_GIVEREF(__pyx_t_1);
8128 __Pyx_GOTREF(__pyx_v_self->nodeArray);
8129 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeArray));
8130 __pyx_v_self->nodeArray = ((PyArrayObject *)__pyx_t_1);
8137 __Pyx_XDECREF(__pyx_t_1);
8138 __Pyx_AddTraceback(
"cmeshTools.CMesh.nodeArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8141 __Pyx_RefNannyFinishContext();
8146 static int __pyx_pw_10cmeshTools_5CMesh_9nodeArray_5__del__(PyObject *__pyx_v_self);
8147 static int __pyx_pw_10cmeshTools_5CMesh_9nodeArray_5__del__(PyObject *__pyx_v_self) {
8149 __Pyx_RefNannyDeclarations
8150 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
8151 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_9nodeArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
8154 __Pyx_RefNannyFinishContext();
8158 static int __pyx_pf_10cmeshTools_5CMesh_9nodeArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
8160 __Pyx_RefNannyDeclarations
8161 __Pyx_RefNannySetupContext(
"__del__", 0);
8162 __Pyx_INCREF(Py_None);
8163 __Pyx_GIVEREF(Py_None);
8164 __Pyx_GOTREF(__pyx_v_self->nodeArray);
8165 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeArray));
8166 __pyx_v_self->nodeArray = ((PyArrayObject *)Py_None);
8170 __Pyx_RefNannyFinishContext();
8183 static PyObject *__pyx_pw_10cmeshTools_5CMesh_2nx_1__get__(PyObject *__pyx_v_self);
8184 static PyObject *__pyx_pw_10cmeshTools_5CMesh_2nx_1__get__(PyObject *__pyx_v_self) {
8185 PyObject *__pyx_r = 0;
8186 __Pyx_RefNannyDeclarations
8187 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
8188 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_2nx___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
8191 __Pyx_RefNannyFinishContext();
8195 static PyObject *__pyx_pf_10cmeshTools_5CMesh_2nx___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
8196 PyObject *__pyx_r = NULL;
8197 __Pyx_RefNannyDeclarations
8198 PyObject *__pyx_t_1 = NULL;
8199 __Pyx_RefNannySetupContext(
"__get__", 0);
8200 __Pyx_XDECREF(__pyx_r);
8201 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->nx);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 55, __pyx_L1_error)
8202 __Pyx_GOTREF(__pyx_t_1);
8203 __pyx_r = __pyx_t_1;
8209 __Pyx_XDECREF(__pyx_t_1);
8210 __Pyx_AddTraceback(
"cmeshTools.CMesh.nx.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8213 __Pyx_XGIVEREF(__pyx_r);
8214 __Pyx_RefNannyFinishContext();
8219 static int __pyx_pw_10cmeshTools_5CMesh_2nx_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
8220 static int __pyx_pw_10cmeshTools_5CMesh_2nx_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8222 __Pyx_RefNannyDeclarations
8223 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
8224 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_2nx_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8227 __Pyx_RefNannyFinishContext();
8231 static int __pyx_pf_10cmeshTools_5CMesh_2nx_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
8233 __Pyx_RefNannyDeclarations
8235 __Pyx_RefNannySetupContext(
"__set__", 0);
8236 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(2, 55, __pyx_L1_error)
8237 __pyx_v_self->nx = __pyx_t_1;
8243 __Pyx_AddTraceback(
"cmeshTools.CMesh.nx.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8246 __Pyx_RefNannyFinishContext();
8259 static PyObject *__pyx_pw_10cmeshTools_5CMesh_2ny_1__get__(PyObject *__pyx_v_self);
8260 static PyObject *__pyx_pw_10cmeshTools_5CMesh_2ny_1__get__(PyObject *__pyx_v_self) {
8261 PyObject *__pyx_r = 0;
8262 __Pyx_RefNannyDeclarations
8263 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
8264 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_2ny___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
8267 __Pyx_RefNannyFinishContext();
8271 static PyObject *__pyx_pf_10cmeshTools_5CMesh_2ny___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
8272 PyObject *__pyx_r = NULL;
8273 __Pyx_RefNannyDeclarations
8274 PyObject *__pyx_t_1 = NULL;
8275 __Pyx_RefNannySetupContext(
"__get__", 0);
8276 __Pyx_XDECREF(__pyx_r);
8277 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->ny);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 56, __pyx_L1_error)
8278 __Pyx_GOTREF(__pyx_t_1);
8279 __pyx_r = __pyx_t_1;
8285 __Pyx_XDECREF(__pyx_t_1);
8286 __Pyx_AddTraceback(
"cmeshTools.CMesh.ny.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8289 __Pyx_XGIVEREF(__pyx_r);
8290 __Pyx_RefNannyFinishContext();
8295 static int __pyx_pw_10cmeshTools_5CMesh_2ny_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
8296 static int __pyx_pw_10cmeshTools_5CMesh_2ny_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8298 __Pyx_RefNannyDeclarations
8299 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
8300 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_2ny_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8303 __Pyx_RefNannyFinishContext();
8307 static int __pyx_pf_10cmeshTools_5CMesh_2ny_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
8309 __Pyx_RefNannyDeclarations
8311 __Pyx_RefNannySetupContext(
"__set__", 0);
8312 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(2, 56, __pyx_L1_error)
8313 __pyx_v_self->ny = __pyx_t_1;
8319 __Pyx_AddTraceback(
"cmeshTools.CMesh.ny.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8322 __Pyx_RefNannyFinishContext();
8335 static PyObject *__pyx_pw_10cmeshTools_5CMesh_2nz_1__get__(PyObject *__pyx_v_self);
8336 static PyObject *__pyx_pw_10cmeshTools_5CMesh_2nz_1__get__(PyObject *__pyx_v_self) {
8337 PyObject *__pyx_r = 0;
8338 __Pyx_RefNannyDeclarations
8339 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
8340 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_2nz___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
8343 __Pyx_RefNannyFinishContext();
8347 static PyObject *__pyx_pf_10cmeshTools_5CMesh_2nz___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
8348 PyObject *__pyx_r = NULL;
8349 __Pyx_RefNannyDeclarations
8350 PyObject *__pyx_t_1 = NULL;
8351 __Pyx_RefNannySetupContext(
"__get__", 0);
8352 __Pyx_XDECREF(__pyx_r);
8353 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->nz);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 57, __pyx_L1_error)
8354 __Pyx_GOTREF(__pyx_t_1);
8355 __pyx_r = __pyx_t_1;
8361 __Pyx_XDECREF(__pyx_t_1);
8362 __Pyx_AddTraceback(
"cmeshTools.CMesh.nz.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8365 __Pyx_XGIVEREF(__pyx_r);
8366 __Pyx_RefNannyFinishContext();
8371 static int __pyx_pw_10cmeshTools_5CMesh_2nz_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
8372 static int __pyx_pw_10cmeshTools_5CMesh_2nz_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8374 __Pyx_RefNannyDeclarations
8375 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
8376 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_2nz_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8379 __Pyx_RefNannyFinishContext();
8383 static int __pyx_pf_10cmeshTools_5CMesh_2nz_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
8385 __Pyx_RefNannyDeclarations
8387 __Pyx_RefNannySetupContext(
"__set__", 0);
8388 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(2, 57, __pyx_L1_error)
8389 __pyx_v_self->nz = __pyx_t_1;
8395 __Pyx_AddTraceback(
"cmeshTools.CMesh.nz.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8398 __Pyx_RefNannyFinishContext();
8411 static PyObject *__pyx_pw_10cmeshTools_5CMesh_2px_1__get__(PyObject *__pyx_v_self);
8412 static PyObject *__pyx_pw_10cmeshTools_5CMesh_2px_1__get__(PyObject *__pyx_v_self) {
8413 PyObject *__pyx_r = 0;
8414 __Pyx_RefNannyDeclarations
8415 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
8416 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_2px___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
8419 __Pyx_RefNannyFinishContext();
8423 static PyObject *__pyx_pf_10cmeshTools_5CMesh_2px___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
8424 PyObject *__pyx_r = NULL;
8425 __Pyx_RefNannyDeclarations
8426 PyObject *__pyx_t_1 = NULL;
8427 __Pyx_RefNannySetupContext(
"__get__", 0);
8428 __Pyx_XDECREF(__pyx_r);
8429 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->px);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 58, __pyx_L1_error)
8430 __Pyx_GOTREF(__pyx_t_1);
8431 __pyx_r = __pyx_t_1;
8437 __Pyx_XDECREF(__pyx_t_1);
8438 __Pyx_AddTraceback(
"cmeshTools.CMesh.px.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8441 __Pyx_XGIVEREF(__pyx_r);
8442 __Pyx_RefNannyFinishContext();
8447 static int __pyx_pw_10cmeshTools_5CMesh_2px_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
8448 static int __pyx_pw_10cmeshTools_5CMesh_2px_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8450 __Pyx_RefNannyDeclarations
8451 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
8452 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_2px_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8455 __Pyx_RefNannyFinishContext();
8459 static int __pyx_pf_10cmeshTools_5CMesh_2px_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
8461 __Pyx_RefNannyDeclarations
8463 __Pyx_RefNannySetupContext(
"__set__", 0);
8464 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(2, 58, __pyx_L1_error)
8465 __pyx_v_self->px = __pyx_t_1;
8471 __Pyx_AddTraceback(
"cmeshTools.CMesh.px.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8474 __Pyx_RefNannyFinishContext();
8487 static PyObject *__pyx_pw_10cmeshTools_5CMesh_2py_1__get__(PyObject *__pyx_v_self);
8488 static PyObject *__pyx_pw_10cmeshTools_5CMesh_2py_1__get__(PyObject *__pyx_v_self) {
8489 PyObject *__pyx_r = 0;
8490 __Pyx_RefNannyDeclarations
8491 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
8492 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_2py___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
8495 __Pyx_RefNannyFinishContext();
8499 static PyObject *__pyx_pf_10cmeshTools_5CMesh_2py___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
8500 PyObject *__pyx_r = NULL;
8501 __Pyx_RefNannyDeclarations
8502 PyObject *__pyx_t_1 = NULL;
8503 __Pyx_RefNannySetupContext(
"__get__", 0);
8504 __Pyx_XDECREF(__pyx_r);
8505 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->py);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 59, __pyx_L1_error)
8506 __Pyx_GOTREF(__pyx_t_1);
8507 __pyx_r = __pyx_t_1;
8513 __Pyx_XDECREF(__pyx_t_1);
8514 __Pyx_AddTraceback(
"cmeshTools.CMesh.py.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8517 __Pyx_XGIVEREF(__pyx_r);
8518 __Pyx_RefNannyFinishContext();
8523 static int __pyx_pw_10cmeshTools_5CMesh_2py_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
8524 static int __pyx_pw_10cmeshTools_5CMesh_2py_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8526 __Pyx_RefNannyDeclarations
8527 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
8528 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_2py_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8531 __Pyx_RefNannyFinishContext();
8535 static int __pyx_pf_10cmeshTools_5CMesh_2py_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
8537 __Pyx_RefNannyDeclarations
8539 __Pyx_RefNannySetupContext(
"__set__", 0);
8540 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(2, 59, __pyx_L1_error)
8541 __pyx_v_self->py = __pyx_t_1;
8547 __Pyx_AddTraceback(
"cmeshTools.CMesh.py.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8550 __Pyx_RefNannyFinishContext();
8563 static PyObject *__pyx_pw_10cmeshTools_5CMesh_2pz_1__get__(PyObject *__pyx_v_self);
8564 static PyObject *__pyx_pw_10cmeshTools_5CMesh_2pz_1__get__(PyObject *__pyx_v_self) {
8565 PyObject *__pyx_r = 0;
8566 __Pyx_RefNannyDeclarations
8567 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
8568 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_2pz___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
8571 __Pyx_RefNannyFinishContext();
8575 static PyObject *__pyx_pf_10cmeshTools_5CMesh_2pz___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
8576 PyObject *__pyx_r = NULL;
8577 __Pyx_RefNannyDeclarations
8578 PyObject *__pyx_t_1 = NULL;
8579 __Pyx_RefNannySetupContext(
"__get__", 0);
8580 __Pyx_XDECREF(__pyx_r);
8581 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->pz);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 60, __pyx_L1_error)
8582 __Pyx_GOTREF(__pyx_t_1);
8583 __pyx_r = __pyx_t_1;
8589 __Pyx_XDECREF(__pyx_t_1);
8590 __Pyx_AddTraceback(
"cmeshTools.CMesh.pz.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8593 __Pyx_XGIVEREF(__pyx_r);
8594 __Pyx_RefNannyFinishContext();
8599 static int __pyx_pw_10cmeshTools_5CMesh_2pz_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
8600 static int __pyx_pw_10cmeshTools_5CMesh_2pz_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8602 __Pyx_RefNannyDeclarations
8603 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
8604 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_2pz_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8607 __Pyx_RefNannyFinishContext();
8611 static int __pyx_pf_10cmeshTools_5CMesh_2pz_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
8613 __Pyx_RefNannyDeclarations
8615 __Pyx_RefNannySetupContext(
"__set__", 0);
8616 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(2, 60, __pyx_L1_error)
8617 __pyx_v_self->pz = __pyx_t_1;
8623 __Pyx_AddTraceback(
"cmeshTools.CMesh.pz.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8626 __Pyx_RefNannyFinishContext();
8639 static PyObject *__pyx_pw_10cmeshTools_5CMesh_10elementIJK_1__get__(PyObject *__pyx_v_self);
8640 static PyObject *__pyx_pw_10cmeshTools_5CMesh_10elementIJK_1__get__(PyObject *__pyx_v_self) {
8641 PyObject *__pyx_r = 0;
8642 __Pyx_RefNannyDeclarations
8643 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
8644 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_10elementIJK___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
8647 __Pyx_RefNannyFinishContext();
8651 static PyObject *__pyx_pf_10cmeshTools_5CMesh_10elementIJK___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
8652 PyObject *__pyx_r = NULL;
8653 __Pyx_RefNannyDeclarations
8654 __Pyx_RefNannySetupContext(
"__get__", 0);
8655 __Pyx_XDECREF(__pyx_r);
8656 __Pyx_INCREF(((PyObject *)__pyx_v_self->elementIJK));
8657 __pyx_r = ((PyObject *)__pyx_v_self->elementIJK);
8662 __Pyx_XGIVEREF(__pyx_r);
8663 __Pyx_RefNannyFinishContext();
8668 static int __pyx_pw_10cmeshTools_5CMesh_10elementIJK_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
8669 static int __pyx_pw_10cmeshTools_5CMesh_10elementIJK_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8671 __Pyx_RefNannyDeclarations
8672 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
8673 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_10elementIJK_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8676 __Pyx_RefNannyFinishContext();
8680 static int __pyx_pf_10cmeshTools_5CMesh_10elementIJK_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
8682 __Pyx_RefNannyDeclarations
8683 PyObject *__pyx_t_1 = NULL;
8684 __Pyx_RefNannySetupContext(
"__set__", 0);
8685 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 74, __pyx_L1_error)
8686 __pyx_t_1 = __pyx_v_value;
8687 __Pyx_INCREF(__pyx_t_1);
8688 __Pyx_GIVEREF(__pyx_t_1);
8689 __Pyx_GOTREF(__pyx_v_self->elementIJK);
8690 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementIJK));
8691 __pyx_v_self->elementIJK = ((PyArrayObject *)__pyx_t_1);
8698 __Pyx_XDECREF(__pyx_t_1);
8699 __Pyx_AddTraceback(
"cmeshTools.CMesh.elementIJK.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8702 __Pyx_RefNannyFinishContext();
8707 static int __pyx_pw_10cmeshTools_5CMesh_10elementIJK_5__del__(PyObject *__pyx_v_self);
8708 static int __pyx_pw_10cmeshTools_5CMesh_10elementIJK_5__del__(PyObject *__pyx_v_self) {
8710 __Pyx_RefNannyDeclarations
8711 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
8712 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_10elementIJK_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
8715 __Pyx_RefNannyFinishContext();
8719 static int __pyx_pf_10cmeshTools_5CMesh_10elementIJK_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
8721 __Pyx_RefNannyDeclarations
8722 __Pyx_RefNannySetupContext(
"__del__", 0);
8723 __Pyx_INCREF(Py_None);
8724 __Pyx_GIVEREF(Py_None);
8725 __Pyx_GOTREF(__pyx_v_self->elementIJK);
8726 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementIJK));
8727 __pyx_v_self->elementIJK = ((PyArrayObject *)Py_None);
8731 __Pyx_RefNannyFinishContext();
8744 static PyObject *__pyx_pw_10cmeshTools_5CMesh_7weights_1__get__(PyObject *__pyx_v_self);
8745 static PyObject *__pyx_pw_10cmeshTools_5CMesh_7weights_1__get__(PyObject *__pyx_v_self) {
8746 PyObject *__pyx_r = 0;
8747 __Pyx_RefNannyDeclarations
8748 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
8749 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_7weights___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
8752 __Pyx_RefNannyFinishContext();
8756 static PyObject *__pyx_pf_10cmeshTools_5CMesh_7weights___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
8757 PyObject *__pyx_r = NULL;
8758 __Pyx_RefNannyDeclarations
8759 __Pyx_RefNannySetupContext(
"__get__", 0);
8760 __Pyx_XDECREF(__pyx_r);
8761 __Pyx_INCREF(((PyObject *)__pyx_v_self->weights));
8762 __pyx_r = ((PyObject *)__pyx_v_self->weights);
8767 __Pyx_XGIVEREF(__pyx_r);
8768 __Pyx_RefNannyFinishContext();
8773 static int __pyx_pw_10cmeshTools_5CMesh_7weights_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
8774 static int __pyx_pw_10cmeshTools_5CMesh_7weights_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8776 __Pyx_RefNannyDeclarations
8777 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
8778 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_7weights_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8781 __Pyx_RefNannyFinishContext();
8785 static int __pyx_pf_10cmeshTools_5CMesh_7weights_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
8787 __Pyx_RefNannyDeclarations
8788 PyObject *__pyx_t_1 = NULL;
8789 __Pyx_RefNannySetupContext(
"__set__", 0);
8790 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 75, __pyx_L1_error)
8791 __pyx_t_1 = __pyx_v_value;
8792 __Pyx_INCREF(__pyx_t_1);
8793 __Pyx_GIVEREF(__pyx_t_1);
8794 __Pyx_GOTREF(__pyx_v_self->weights);
8795 __Pyx_DECREF(((PyObject *)__pyx_v_self->weights));
8796 __pyx_v_self->weights = ((PyArrayObject *)__pyx_t_1);
8803 __Pyx_XDECREF(__pyx_t_1);
8804 __Pyx_AddTraceback(
"cmeshTools.CMesh.weights.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8807 __Pyx_RefNannyFinishContext();
8812 static int __pyx_pw_10cmeshTools_5CMesh_7weights_5__del__(PyObject *__pyx_v_self);
8813 static int __pyx_pw_10cmeshTools_5CMesh_7weights_5__del__(PyObject *__pyx_v_self) {
8815 __Pyx_RefNannyDeclarations
8816 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
8817 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_7weights_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
8820 __Pyx_RefNannyFinishContext();
8824 static int __pyx_pf_10cmeshTools_5CMesh_7weights_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
8826 __Pyx_RefNannyDeclarations
8827 __Pyx_RefNannySetupContext(
"__del__", 0);
8828 __Pyx_INCREF(Py_None);
8829 __Pyx_GIVEREF(Py_None);
8830 __Pyx_GOTREF(__pyx_v_self->weights);
8831 __Pyx_DECREF(((PyObject *)__pyx_v_self->weights));
8832 __pyx_v_self->weights = ((PyArrayObject *)Py_None);
8836 __Pyx_RefNannyFinishContext();
8849 static PyObject *__pyx_pw_10cmeshTools_5CMesh_6U_KNOT_1__get__(PyObject *__pyx_v_self);
8850 static PyObject *__pyx_pw_10cmeshTools_5CMesh_6U_KNOT_1__get__(PyObject *__pyx_v_self) {
8851 PyObject *__pyx_r = 0;
8852 __Pyx_RefNannyDeclarations
8853 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
8854 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_6U_KNOT___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
8857 __Pyx_RefNannyFinishContext();
8861 static PyObject *__pyx_pf_10cmeshTools_5CMesh_6U_KNOT___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
8862 PyObject *__pyx_r = NULL;
8863 __Pyx_RefNannyDeclarations
8864 __Pyx_RefNannySetupContext(
"__get__", 0);
8865 __Pyx_XDECREF(__pyx_r);
8866 __Pyx_INCREF(((PyObject *)__pyx_v_self->U_KNOT));
8867 __pyx_r = ((PyObject *)__pyx_v_self->U_KNOT);
8872 __Pyx_XGIVEREF(__pyx_r);
8873 __Pyx_RefNannyFinishContext();
8878 static int __pyx_pw_10cmeshTools_5CMesh_6U_KNOT_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
8879 static int __pyx_pw_10cmeshTools_5CMesh_6U_KNOT_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8881 __Pyx_RefNannyDeclarations
8882 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
8883 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_6U_KNOT_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8886 __Pyx_RefNannyFinishContext();
8890 static int __pyx_pf_10cmeshTools_5CMesh_6U_KNOT_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
8892 __Pyx_RefNannyDeclarations
8893 PyObject *__pyx_t_1 = NULL;
8894 __Pyx_RefNannySetupContext(
"__set__", 0);
8895 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 76, __pyx_L1_error)
8896 __pyx_t_1 = __pyx_v_value;
8897 __Pyx_INCREF(__pyx_t_1);
8898 __Pyx_GIVEREF(__pyx_t_1);
8899 __Pyx_GOTREF(__pyx_v_self->U_KNOT);
8900 __Pyx_DECREF(((PyObject *)__pyx_v_self->U_KNOT));
8901 __pyx_v_self->U_KNOT = ((PyArrayObject *)__pyx_t_1);
8908 __Pyx_XDECREF(__pyx_t_1);
8909 __Pyx_AddTraceback(
"cmeshTools.CMesh.U_KNOT.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
8912 __Pyx_RefNannyFinishContext();
8917 static int __pyx_pw_10cmeshTools_5CMesh_6U_KNOT_5__del__(PyObject *__pyx_v_self);
8918 static int __pyx_pw_10cmeshTools_5CMesh_6U_KNOT_5__del__(PyObject *__pyx_v_self) {
8920 __Pyx_RefNannyDeclarations
8921 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
8922 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_6U_KNOT_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
8925 __Pyx_RefNannyFinishContext();
8929 static int __pyx_pf_10cmeshTools_5CMesh_6U_KNOT_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
8931 __Pyx_RefNannyDeclarations
8932 __Pyx_RefNannySetupContext(
"__del__", 0);
8933 __Pyx_INCREF(Py_None);
8934 __Pyx_GIVEREF(Py_None);
8935 __Pyx_GOTREF(__pyx_v_self->U_KNOT);
8936 __Pyx_DECREF(((PyObject *)__pyx_v_self->U_KNOT));
8937 __pyx_v_self->U_KNOT = ((PyArrayObject *)Py_None);
8941 __Pyx_RefNannyFinishContext();
8954 static PyObject *__pyx_pw_10cmeshTools_5CMesh_6V_KNOT_1__get__(PyObject *__pyx_v_self);
8955 static PyObject *__pyx_pw_10cmeshTools_5CMesh_6V_KNOT_1__get__(PyObject *__pyx_v_self) {
8956 PyObject *__pyx_r = 0;
8957 __Pyx_RefNannyDeclarations
8958 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
8959 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_6V_KNOT___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
8962 __Pyx_RefNannyFinishContext();
8966 static PyObject *__pyx_pf_10cmeshTools_5CMesh_6V_KNOT___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
8967 PyObject *__pyx_r = NULL;
8968 __Pyx_RefNannyDeclarations
8969 __Pyx_RefNannySetupContext(
"__get__", 0);
8970 __Pyx_XDECREF(__pyx_r);
8971 __Pyx_INCREF(((PyObject *)__pyx_v_self->V_KNOT));
8972 __pyx_r = ((PyObject *)__pyx_v_self->V_KNOT);
8977 __Pyx_XGIVEREF(__pyx_r);
8978 __Pyx_RefNannyFinishContext();
8983 static int __pyx_pw_10cmeshTools_5CMesh_6V_KNOT_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
8984 static int __pyx_pw_10cmeshTools_5CMesh_6V_KNOT_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
8986 __Pyx_RefNannyDeclarations
8987 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
8988 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_6V_KNOT_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
8991 __Pyx_RefNannyFinishContext();
8995 static int __pyx_pf_10cmeshTools_5CMesh_6V_KNOT_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
8997 __Pyx_RefNannyDeclarations
8998 PyObject *__pyx_t_1 = NULL;
8999 __Pyx_RefNannySetupContext(
"__set__", 0);
9000 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 77, __pyx_L1_error)
9001 __pyx_t_1 = __pyx_v_value;
9002 __Pyx_INCREF(__pyx_t_1);
9003 __Pyx_GIVEREF(__pyx_t_1);
9004 __Pyx_GOTREF(__pyx_v_self->V_KNOT);
9005 __Pyx_DECREF(((PyObject *)__pyx_v_self->V_KNOT));
9006 __pyx_v_self->V_KNOT = ((PyArrayObject *)__pyx_t_1);
9013 __Pyx_XDECREF(__pyx_t_1);
9014 __Pyx_AddTraceback(
"cmeshTools.CMesh.V_KNOT.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
9017 __Pyx_RefNannyFinishContext();
9022 static int __pyx_pw_10cmeshTools_5CMesh_6V_KNOT_5__del__(PyObject *__pyx_v_self);
9023 static int __pyx_pw_10cmeshTools_5CMesh_6V_KNOT_5__del__(PyObject *__pyx_v_self) {
9025 __Pyx_RefNannyDeclarations
9026 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
9027 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_6V_KNOT_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9030 __Pyx_RefNannyFinishContext();
9034 static int __pyx_pf_10cmeshTools_5CMesh_6V_KNOT_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9036 __Pyx_RefNannyDeclarations
9037 __Pyx_RefNannySetupContext(
"__del__", 0);
9038 __Pyx_INCREF(Py_None);
9039 __Pyx_GIVEREF(Py_None);
9040 __Pyx_GOTREF(__pyx_v_self->V_KNOT);
9041 __Pyx_DECREF(((PyObject *)__pyx_v_self->V_KNOT));
9042 __pyx_v_self->V_KNOT = ((PyArrayObject *)Py_None);
9046 __Pyx_RefNannyFinishContext();
9059 static PyObject *__pyx_pw_10cmeshTools_5CMesh_6W_KNOT_1__get__(PyObject *__pyx_v_self);
9060 static PyObject *__pyx_pw_10cmeshTools_5CMesh_6W_KNOT_1__get__(PyObject *__pyx_v_self) {
9061 PyObject *__pyx_r = 0;
9062 __Pyx_RefNannyDeclarations
9063 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
9064 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_6W_KNOT___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9067 __Pyx_RefNannyFinishContext();
9071 static PyObject *__pyx_pf_10cmeshTools_5CMesh_6W_KNOT___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9072 PyObject *__pyx_r = NULL;
9073 __Pyx_RefNannyDeclarations
9074 __Pyx_RefNannySetupContext(
"__get__", 0);
9075 __Pyx_XDECREF(__pyx_r);
9076 __Pyx_INCREF(((PyObject *)__pyx_v_self->W_KNOT));
9077 __pyx_r = ((PyObject *)__pyx_v_self->W_KNOT);
9082 __Pyx_XGIVEREF(__pyx_r);
9083 __Pyx_RefNannyFinishContext();
9088 static int __pyx_pw_10cmeshTools_5CMesh_6W_KNOT_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
9089 static int __pyx_pw_10cmeshTools_5CMesh_6W_KNOT_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
9091 __Pyx_RefNannyDeclarations
9092 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
9093 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_6W_KNOT_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
9096 __Pyx_RefNannyFinishContext();
9100 static int __pyx_pf_10cmeshTools_5CMesh_6W_KNOT_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
9102 __Pyx_RefNannyDeclarations
9103 PyObject *__pyx_t_1 = NULL;
9104 __Pyx_RefNannySetupContext(
"__set__", 0);
9105 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 78, __pyx_L1_error)
9106 __pyx_t_1 = __pyx_v_value;
9107 __Pyx_INCREF(__pyx_t_1);
9108 __Pyx_GIVEREF(__pyx_t_1);
9109 __Pyx_GOTREF(__pyx_v_self->W_KNOT);
9110 __Pyx_DECREF(((PyObject *)__pyx_v_self->W_KNOT));
9111 __pyx_v_self->W_KNOT = ((PyArrayObject *)__pyx_t_1);
9118 __Pyx_XDECREF(__pyx_t_1);
9119 __Pyx_AddTraceback(
"cmeshTools.CMesh.W_KNOT.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
9122 __Pyx_RefNannyFinishContext();
9127 static int __pyx_pw_10cmeshTools_5CMesh_6W_KNOT_5__del__(PyObject *__pyx_v_self);
9128 static int __pyx_pw_10cmeshTools_5CMesh_6W_KNOT_5__del__(PyObject *__pyx_v_self) {
9130 __Pyx_RefNannyDeclarations
9131 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
9132 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_6W_KNOT_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9135 __Pyx_RefNannyFinishContext();
9139 static int __pyx_pf_10cmeshTools_5CMesh_6W_KNOT_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9141 __Pyx_RefNannyDeclarations
9142 __Pyx_RefNannySetupContext(
"__del__", 0);
9143 __Pyx_INCREF(Py_None);
9144 __Pyx_GIVEREF(Py_None);
9145 __Pyx_GOTREF(__pyx_v_self->W_KNOT);
9146 __Pyx_DECREF(((PyObject *)__pyx_v_self->W_KNOT));
9147 __pyx_v_self->W_KNOT = ((PyArrayObject *)Py_None);
9151 __Pyx_RefNannyFinishContext();
9164 static PyObject *__pyx_pw_10cmeshTools_5CMesh_21elementDiametersArray_1__get__(PyObject *__pyx_v_self);
9165 static PyObject *__pyx_pw_10cmeshTools_5CMesh_21elementDiametersArray_1__get__(PyObject *__pyx_v_self) {
9166 PyObject *__pyx_r = 0;
9167 __Pyx_RefNannyDeclarations
9168 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
9169 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_21elementDiametersArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9172 __Pyx_RefNannyFinishContext();
9176 static PyObject *__pyx_pf_10cmeshTools_5CMesh_21elementDiametersArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9177 PyObject *__pyx_r = NULL;
9178 __Pyx_RefNannyDeclarations
9179 __Pyx_RefNannySetupContext(
"__get__", 0);
9180 __Pyx_XDECREF(__pyx_r);
9181 __Pyx_INCREF(((PyObject *)__pyx_v_self->elementDiametersArray));
9182 __pyx_r = ((PyObject *)__pyx_v_self->elementDiametersArray);
9187 __Pyx_XGIVEREF(__pyx_r);
9188 __Pyx_RefNannyFinishContext();
9193 static int __pyx_pw_10cmeshTools_5CMesh_21elementDiametersArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
9194 static int __pyx_pw_10cmeshTools_5CMesh_21elementDiametersArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
9196 __Pyx_RefNannyDeclarations
9197 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
9198 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_21elementDiametersArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
9201 __Pyx_RefNannyFinishContext();
9205 static int __pyx_pf_10cmeshTools_5CMesh_21elementDiametersArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
9207 __Pyx_RefNannyDeclarations
9208 PyObject *__pyx_t_1 = NULL;
9209 __Pyx_RefNannySetupContext(
"__set__", 0);
9210 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 79, __pyx_L1_error)
9211 __pyx_t_1 = __pyx_v_value;
9212 __Pyx_INCREF(__pyx_t_1);
9213 __Pyx_GIVEREF(__pyx_t_1);
9214 __Pyx_GOTREF(__pyx_v_self->elementDiametersArray);
9215 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementDiametersArray));
9216 __pyx_v_self->elementDiametersArray = ((PyArrayObject *)__pyx_t_1);
9223 __Pyx_XDECREF(__pyx_t_1);
9224 __Pyx_AddTraceback(
"cmeshTools.CMesh.elementDiametersArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
9227 __Pyx_RefNannyFinishContext();
9232 static int __pyx_pw_10cmeshTools_5CMesh_21elementDiametersArray_5__del__(PyObject *__pyx_v_self);
9233 static int __pyx_pw_10cmeshTools_5CMesh_21elementDiametersArray_5__del__(PyObject *__pyx_v_self) {
9235 __Pyx_RefNannyDeclarations
9236 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
9237 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_21elementDiametersArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9240 __Pyx_RefNannyFinishContext();
9244 static int __pyx_pf_10cmeshTools_5CMesh_21elementDiametersArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9246 __Pyx_RefNannyDeclarations
9247 __Pyx_RefNannySetupContext(
"__del__", 0);
9248 __Pyx_INCREF(Py_None);
9249 __Pyx_GIVEREF(Py_None);
9250 __Pyx_GOTREF(__pyx_v_self->elementDiametersArray);
9251 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementDiametersArray));
9252 __pyx_v_self->elementDiametersArray = ((PyArrayObject *)Py_None);
9256 __Pyx_RefNannyFinishContext();
9269 static PyObject *__pyx_pw_10cmeshTools_5CMesh_26elementInnerDiametersArray_1__get__(PyObject *__pyx_v_self);
9270 static PyObject *__pyx_pw_10cmeshTools_5CMesh_26elementInnerDiametersArray_1__get__(PyObject *__pyx_v_self) {
9271 PyObject *__pyx_r = 0;
9272 __Pyx_RefNannyDeclarations
9273 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
9274 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_26elementInnerDiametersArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9277 __Pyx_RefNannyFinishContext();
9281 static PyObject *__pyx_pf_10cmeshTools_5CMesh_26elementInnerDiametersArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9282 PyObject *__pyx_r = NULL;
9283 __Pyx_RefNannyDeclarations
9284 __Pyx_RefNannySetupContext(
"__get__", 0);
9285 __Pyx_XDECREF(__pyx_r);
9286 __Pyx_INCREF(((PyObject *)__pyx_v_self->elementInnerDiametersArray));
9287 __pyx_r = ((PyObject *)__pyx_v_self->elementInnerDiametersArray);
9292 __Pyx_XGIVEREF(__pyx_r);
9293 __Pyx_RefNannyFinishContext();
9298 static int __pyx_pw_10cmeshTools_5CMesh_26elementInnerDiametersArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
9299 static int __pyx_pw_10cmeshTools_5CMesh_26elementInnerDiametersArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
9301 __Pyx_RefNannyDeclarations
9302 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
9303 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_26elementInnerDiametersArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
9306 __Pyx_RefNannyFinishContext();
9310 static int __pyx_pf_10cmeshTools_5CMesh_26elementInnerDiametersArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
9312 __Pyx_RefNannyDeclarations
9313 PyObject *__pyx_t_1 = NULL;
9314 __Pyx_RefNannySetupContext(
"__set__", 0);
9315 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 80, __pyx_L1_error)
9316 __pyx_t_1 = __pyx_v_value;
9317 __Pyx_INCREF(__pyx_t_1);
9318 __Pyx_GIVEREF(__pyx_t_1);
9319 __Pyx_GOTREF(__pyx_v_self->elementInnerDiametersArray);
9320 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementInnerDiametersArray));
9321 __pyx_v_self->elementInnerDiametersArray = ((PyArrayObject *)__pyx_t_1);
9328 __Pyx_XDECREF(__pyx_t_1);
9329 __Pyx_AddTraceback(
"cmeshTools.CMesh.elementInnerDiametersArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
9332 __Pyx_RefNannyFinishContext();
9337 static int __pyx_pw_10cmeshTools_5CMesh_26elementInnerDiametersArray_5__del__(PyObject *__pyx_v_self);
9338 static int __pyx_pw_10cmeshTools_5CMesh_26elementInnerDiametersArray_5__del__(PyObject *__pyx_v_self) {
9340 __Pyx_RefNannyDeclarations
9341 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
9342 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_26elementInnerDiametersArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9345 __Pyx_RefNannyFinishContext();
9349 static int __pyx_pf_10cmeshTools_5CMesh_26elementInnerDiametersArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9351 __Pyx_RefNannyDeclarations
9352 __Pyx_RefNannySetupContext(
"__del__", 0);
9353 __Pyx_INCREF(Py_None);
9354 __Pyx_GIVEREF(Py_None);
9355 __Pyx_GOTREF(__pyx_v_self->elementInnerDiametersArray);
9356 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementInnerDiametersArray));
9357 __pyx_v_self->elementInnerDiametersArray = ((PyArrayObject *)Py_None);
9361 __Pyx_RefNannyFinishContext();
9374 static PyObject *__pyx_pw_10cmeshTools_5CMesh_29elementBoundaryDiametersArray_1__get__(PyObject *__pyx_v_self);
9375 static PyObject *__pyx_pw_10cmeshTools_5CMesh_29elementBoundaryDiametersArray_1__get__(PyObject *__pyx_v_self) {
9376 PyObject *__pyx_r = 0;
9377 __Pyx_RefNannyDeclarations
9378 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
9379 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_29elementBoundaryDiametersArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9382 __Pyx_RefNannyFinishContext();
9386 static PyObject *__pyx_pf_10cmeshTools_5CMesh_29elementBoundaryDiametersArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9387 PyObject *__pyx_r = NULL;
9388 __Pyx_RefNannyDeclarations
9389 __Pyx_RefNannySetupContext(
"__get__", 0);
9390 __Pyx_XDECREF(__pyx_r);
9391 __Pyx_INCREF(((PyObject *)__pyx_v_self->elementBoundaryDiametersArray));
9392 __pyx_r = ((PyObject *)__pyx_v_self->elementBoundaryDiametersArray);
9397 __Pyx_XGIVEREF(__pyx_r);
9398 __Pyx_RefNannyFinishContext();
9403 static int __pyx_pw_10cmeshTools_5CMesh_29elementBoundaryDiametersArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
9404 static int __pyx_pw_10cmeshTools_5CMesh_29elementBoundaryDiametersArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
9406 __Pyx_RefNannyDeclarations
9407 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
9408 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_29elementBoundaryDiametersArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
9411 __Pyx_RefNannyFinishContext();
9415 static int __pyx_pf_10cmeshTools_5CMesh_29elementBoundaryDiametersArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
9417 __Pyx_RefNannyDeclarations
9418 PyObject *__pyx_t_1 = NULL;
9419 __Pyx_RefNannySetupContext(
"__set__", 0);
9420 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 81, __pyx_L1_error)
9421 __pyx_t_1 = __pyx_v_value;
9422 __Pyx_INCREF(__pyx_t_1);
9423 __Pyx_GIVEREF(__pyx_t_1);
9424 __Pyx_GOTREF(__pyx_v_self->elementBoundaryDiametersArray);
9425 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryDiametersArray));
9426 __pyx_v_self->elementBoundaryDiametersArray = ((PyArrayObject *)__pyx_t_1);
9433 __Pyx_XDECREF(__pyx_t_1);
9434 __Pyx_AddTraceback(
"cmeshTools.CMesh.elementBoundaryDiametersArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
9437 __Pyx_RefNannyFinishContext();
9442 static int __pyx_pw_10cmeshTools_5CMesh_29elementBoundaryDiametersArray_5__del__(PyObject *__pyx_v_self);
9443 static int __pyx_pw_10cmeshTools_5CMesh_29elementBoundaryDiametersArray_5__del__(PyObject *__pyx_v_self) {
9445 __Pyx_RefNannyDeclarations
9446 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
9447 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_29elementBoundaryDiametersArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9450 __Pyx_RefNannyFinishContext();
9454 static int __pyx_pf_10cmeshTools_5CMesh_29elementBoundaryDiametersArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9456 __Pyx_RefNannyDeclarations
9457 __Pyx_RefNannySetupContext(
"__del__", 0);
9458 __Pyx_INCREF(Py_None);
9459 __Pyx_GIVEREF(Py_None);
9460 __Pyx_GOTREF(__pyx_v_self->elementBoundaryDiametersArray);
9461 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryDiametersArray));
9462 __pyx_v_self->elementBoundaryDiametersArray = ((PyArrayObject *)Py_None);
9466 __Pyx_RefNannyFinishContext();
9479 static PyObject *__pyx_pw_10cmeshTools_5CMesh_23elementBarycentersArray_1__get__(PyObject *__pyx_v_self);
9480 static PyObject *__pyx_pw_10cmeshTools_5CMesh_23elementBarycentersArray_1__get__(PyObject *__pyx_v_self) {
9481 PyObject *__pyx_r = 0;
9482 __Pyx_RefNannyDeclarations
9483 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
9484 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_23elementBarycentersArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9487 __Pyx_RefNannyFinishContext();
9491 static PyObject *__pyx_pf_10cmeshTools_5CMesh_23elementBarycentersArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9492 PyObject *__pyx_r = NULL;
9493 __Pyx_RefNannyDeclarations
9494 __Pyx_RefNannySetupContext(
"__get__", 0);
9495 __Pyx_XDECREF(__pyx_r);
9496 __Pyx_INCREF(((PyObject *)__pyx_v_self->elementBarycentersArray));
9497 __pyx_r = ((PyObject *)__pyx_v_self->elementBarycentersArray);
9502 __Pyx_XGIVEREF(__pyx_r);
9503 __Pyx_RefNannyFinishContext();
9508 static int __pyx_pw_10cmeshTools_5CMesh_23elementBarycentersArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
9509 static int __pyx_pw_10cmeshTools_5CMesh_23elementBarycentersArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
9511 __Pyx_RefNannyDeclarations
9512 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
9513 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_23elementBarycentersArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
9516 __Pyx_RefNannyFinishContext();
9520 static int __pyx_pf_10cmeshTools_5CMesh_23elementBarycentersArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
9522 __Pyx_RefNannyDeclarations
9523 PyObject *__pyx_t_1 = NULL;
9524 __Pyx_RefNannySetupContext(
"__set__", 0);
9525 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 82, __pyx_L1_error)
9526 __pyx_t_1 = __pyx_v_value;
9527 __Pyx_INCREF(__pyx_t_1);
9528 __Pyx_GIVEREF(__pyx_t_1);
9529 __Pyx_GOTREF(__pyx_v_self->elementBarycentersArray);
9530 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBarycentersArray));
9531 __pyx_v_self->elementBarycentersArray = ((PyArrayObject *)__pyx_t_1);
9538 __Pyx_XDECREF(__pyx_t_1);
9539 __Pyx_AddTraceback(
"cmeshTools.CMesh.elementBarycentersArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
9542 __Pyx_RefNannyFinishContext();
9547 static int __pyx_pw_10cmeshTools_5CMesh_23elementBarycentersArray_5__del__(PyObject *__pyx_v_self);
9548 static int __pyx_pw_10cmeshTools_5CMesh_23elementBarycentersArray_5__del__(PyObject *__pyx_v_self) {
9550 __Pyx_RefNannyDeclarations
9551 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
9552 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_23elementBarycentersArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9555 __Pyx_RefNannyFinishContext();
9559 static int __pyx_pf_10cmeshTools_5CMesh_23elementBarycentersArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9561 __Pyx_RefNannyDeclarations
9562 __Pyx_RefNannySetupContext(
"__del__", 0);
9563 __Pyx_INCREF(Py_None);
9564 __Pyx_GIVEREF(Py_None);
9565 __Pyx_GOTREF(__pyx_v_self->elementBarycentersArray);
9566 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBarycentersArray));
9567 __pyx_v_self->elementBarycentersArray = ((PyArrayObject *)Py_None);
9571 __Pyx_RefNannyFinishContext();
9584 static PyObject *__pyx_pw_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray_1__get__(PyObject *__pyx_v_self);
9585 static PyObject *__pyx_pw_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray_1__get__(PyObject *__pyx_v_self) {
9586 PyObject *__pyx_r = 0;
9587 __Pyx_RefNannyDeclarations
9588 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
9589 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9592 __Pyx_RefNannyFinishContext();
9596 static PyObject *__pyx_pf_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9597 PyObject *__pyx_r = NULL;
9598 __Pyx_RefNannyDeclarations
9599 __Pyx_RefNannySetupContext(
"__get__", 0);
9600 __Pyx_XDECREF(__pyx_r);
9601 __Pyx_INCREF(((PyObject *)__pyx_v_self->elementBoundaryBarycentersArray));
9602 __pyx_r = ((PyObject *)__pyx_v_self->elementBoundaryBarycentersArray);
9607 __Pyx_XGIVEREF(__pyx_r);
9608 __Pyx_RefNannyFinishContext();
9613 static int __pyx_pw_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
9614 static int __pyx_pw_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
9616 __Pyx_RefNannyDeclarations
9617 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
9618 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
9621 __Pyx_RefNannyFinishContext();
9625 static int __pyx_pf_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
9627 __Pyx_RefNannyDeclarations
9628 PyObject *__pyx_t_1 = NULL;
9629 __Pyx_RefNannySetupContext(
"__set__", 0);
9630 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 83, __pyx_L1_error)
9631 __pyx_t_1 = __pyx_v_value;
9632 __Pyx_INCREF(__pyx_t_1);
9633 __Pyx_GIVEREF(__pyx_t_1);
9634 __Pyx_GOTREF(__pyx_v_self->elementBoundaryBarycentersArray);
9635 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryBarycentersArray));
9636 __pyx_v_self->elementBoundaryBarycentersArray = ((PyArrayObject *)__pyx_t_1);
9643 __Pyx_XDECREF(__pyx_t_1);
9644 __Pyx_AddTraceback(
"cmeshTools.CMesh.elementBoundaryBarycentersArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
9647 __Pyx_RefNannyFinishContext();
9652 static int __pyx_pw_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray_5__del__(PyObject *__pyx_v_self);
9653 static int __pyx_pw_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray_5__del__(PyObject *__pyx_v_self) {
9655 __Pyx_RefNannyDeclarations
9656 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
9657 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9660 __Pyx_RefNannyFinishContext();
9664 static int __pyx_pf_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9666 __Pyx_RefNannyDeclarations
9667 __Pyx_RefNannySetupContext(
"__del__", 0);
9668 __Pyx_INCREF(Py_None);
9669 __Pyx_GIVEREF(Py_None);
9670 __Pyx_GOTREF(__pyx_v_self->elementBoundaryBarycentersArray);
9671 __Pyx_DECREF(((PyObject *)__pyx_v_self->elementBoundaryBarycentersArray));
9672 __pyx_v_self->elementBoundaryBarycentersArray = ((PyArrayObject *)Py_None);
9676 __Pyx_RefNannyFinishContext();
9689 static PyObject *__pyx_pw_10cmeshTools_5CMesh_18nodeDiametersArray_1__get__(PyObject *__pyx_v_self);
9690 static PyObject *__pyx_pw_10cmeshTools_5CMesh_18nodeDiametersArray_1__get__(PyObject *__pyx_v_self) {
9691 PyObject *__pyx_r = 0;
9692 __Pyx_RefNannyDeclarations
9693 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
9694 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_18nodeDiametersArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9697 __Pyx_RefNannyFinishContext();
9701 static PyObject *__pyx_pf_10cmeshTools_5CMesh_18nodeDiametersArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9702 PyObject *__pyx_r = NULL;
9703 __Pyx_RefNannyDeclarations
9704 __Pyx_RefNannySetupContext(
"__get__", 0);
9705 __Pyx_XDECREF(__pyx_r);
9706 __Pyx_INCREF(((PyObject *)__pyx_v_self->nodeDiametersArray));
9707 __pyx_r = ((PyObject *)__pyx_v_self->nodeDiametersArray);
9712 __Pyx_XGIVEREF(__pyx_r);
9713 __Pyx_RefNannyFinishContext();
9718 static int __pyx_pw_10cmeshTools_5CMesh_18nodeDiametersArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
9719 static int __pyx_pw_10cmeshTools_5CMesh_18nodeDiametersArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
9721 __Pyx_RefNannyDeclarations
9722 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
9723 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_18nodeDiametersArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
9726 __Pyx_RefNannyFinishContext();
9730 static int __pyx_pf_10cmeshTools_5CMesh_18nodeDiametersArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
9732 __Pyx_RefNannyDeclarations
9733 PyObject *__pyx_t_1 = NULL;
9734 __Pyx_RefNannySetupContext(
"__set__", 0);
9735 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 84, __pyx_L1_error)
9736 __pyx_t_1 = __pyx_v_value;
9737 __Pyx_INCREF(__pyx_t_1);
9738 __Pyx_GIVEREF(__pyx_t_1);
9739 __Pyx_GOTREF(__pyx_v_self->nodeDiametersArray);
9740 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeDiametersArray));
9741 __pyx_v_self->nodeDiametersArray = ((PyArrayObject *)__pyx_t_1);
9748 __Pyx_XDECREF(__pyx_t_1);
9749 __Pyx_AddTraceback(
"cmeshTools.CMesh.nodeDiametersArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
9752 __Pyx_RefNannyFinishContext();
9757 static int __pyx_pw_10cmeshTools_5CMesh_18nodeDiametersArray_5__del__(PyObject *__pyx_v_self);
9758 static int __pyx_pw_10cmeshTools_5CMesh_18nodeDiametersArray_5__del__(PyObject *__pyx_v_self) {
9760 __Pyx_RefNannyDeclarations
9761 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
9762 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_18nodeDiametersArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9765 __Pyx_RefNannyFinishContext();
9769 static int __pyx_pf_10cmeshTools_5CMesh_18nodeDiametersArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9771 __Pyx_RefNannyDeclarations
9772 __Pyx_RefNannySetupContext(
"__del__", 0);
9773 __Pyx_INCREF(Py_None);
9774 __Pyx_GIVEREF(Py_None);
9775 __Pyx_GOTREF(__pyx_v_self->nodeDiametersArray);
9776 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeDiametersArray));
9777 __pyx_v_self->nodeDiametersArray = ((PyArrayObject *)Py_None);
9781 __Pyx_RefNannyFinishContext();
9794 static PyObject *__pyx_pw_10cmeshTools_5CMesh_16nodeSupportArray_1__get__(PyObject *__pyx_v_self);
9795 static PyObject *__pyx_pw_10cmeshTools_5CMesh_16nodeSupportArray_1__get__(PyObject *__pyx_v_self) {
9796 PyObject *__pyx_r = 0;
9797 __Pyx_RefNannyDeclarations
9798 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
9799 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_16nodeSupportArray___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9802 __Pyx_RefNannyFinishContext();
9806 static PyObject *__pyx_pf_10cmeshTools_5CMesh_16nodeSupportArray___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9807 PyObject *__pyx_r = NULL;
9808 __Pyx_RefNannyDeclarations
9809 __Pyx_RefNannySetupContext(
"__get__", 0);
9810 __Pyx_XDECREF(__pyx_r);
9811 __Pyx_INCREF(((PyObject *)__pyx_v_self->nodeSupportArray));
9812 __pyx_r = ((PyObject *)__pyx_v_self->nodeSupportArray);
9817 __Pyx_XGIVEREF(__pyx_r);
9818 __Pyx_RefNannyFinishContext();
9823 static int __pyx_pw_10cmeshTools_5CMesh_16nodeSupportArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
9824 static int __pyx_pw_10cmeshTools_5CMesh_16nodeSupportArray_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
9826 __Pyx_RefNannyDeclarations
9827 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
9828 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_16nodeSupportArray_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
9831 __Pyx_RefNannyFinishContext();
9835 static int __pyx_pf_10cmeshTools_5CMesh_16nodeSupportArray_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
9837 __Pyx_RefNannyDeclarations
9838 PyObject *__pyx_t_1 = NULL;
9839 __Pyx_RefNannySetupContext(
"__set__", 0);
9840 if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 85, __pyx_L1_error)
9841 __pyx_t_1 = __pyx_v_value;
9842 __Pyx_INCREF(__pyx_t_1);
9843 __Pyx_GIVEREF(__pyx_t_1);
9844 __Pyx_GOTREF(__pyx_v_self->nodeSupportArray);
9845 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeSupportArray));
9846 __pyx_v_self->nodeSupportArray = ((PyArrayObject *)__pyx_t_1);
9853 __Pyx_XDECREF(__pyx_t_1);
9854 __Pyx_AddTraceback(
"cmeshTools.CMesh.nodeSupportArray.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
9857 __Pyx_RefNannyFinishContext();
9862 static int __pyx_pw_10cmeshTools_5CMesh_16nodeSupportArray_5__del__(PyObject *__pyx_v_self);
9863 static int __pyx_pw_10cmeshTools_5CMesh_16nodeSupportArray_5__del__(PyObject *__pyx_v_self) {
9865 __Pyx_RefNannyDeclarations
9866 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
9867 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_16nodeSupportArray_4__del__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9870 __Pyx_RefNannyFinishContext();
9874 static int __pyx_pf_10cmeshTools_5CMesh_16nodeSupportArray_4__del__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9876 __Pyx_RefNannyDeclarations
9877 __Pyx_RefNannySetupContext(
"__del__", 0);
9878 __Pyx_INCREF(Py_None);
9879 __Pyx_GIVEREF(Py_None);
9880 __Pyx_GOTREF(__pyx_v_self->nodeSupportArray);
9881 __Pyx_DECREF(((PyObject *)__pyx_v_self->nodeSupportArray));
9882 __pyx_v_self->nodeSupportArray = ((PyArrayObject *)Py_None);
9886 __Pyx_RefNannyFinishContext();
9899 static PyObject *__pyx_pw_10cmeshTools_5CMesh_1h_1__get__(PyObject *__pyx_v_self);
9900 static PyObject *__pyx_pw_10cmeshTools_5CMesh_1h_1__get__(PyObject *__pyx_v_self) {
9901 PyObject *__pyx_r = 0;
9902 __Pyx_RefNannyDeclarations
9903 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
9904 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_1h___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9907 __Pyx_RefNannyFinishContext();
9911 static PyObject *__pyx_pf_10cmeshTools_5CMesh_1h___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9912 PyObject *__pyx_r = NULL;
9913 __Pyx_RefNannyDeclarations
9914 PyObject *__pyx_t_1 = NULL;
9915 __Pyx_RefNannySetupContext(
"__get__", 0);
9916 __Pyx_XDECREF(__pyx_r);
9917 __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->h);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 87, __pyx_L1_error)
9918 __Pyx_GOTREF(__pyx_t_1);
9919 __pyx_r = __pyx_t_1;
9925 __Pyx_XDECREF(__pyx_t_1);
9926 __Pyx_AddTraceback(
"cmeshTools.CMesh.h.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
9929 __Pyx_XGIVEREF(__pyx_r);
9930 __Pyx_RefNannyFinishContext();
9935 static int __pyx_pw_10cmeshTools_5CMesh_1h_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
9936 static int __pyx_pw_10cmeshTools_5CMesh_1h_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
9938 __Pyx_RefNannyDeclarations
9939 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
9940 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_1h_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
9943 __Pyx_RefNannyFinishContext();
9947 static int __pyx_pf_10cmeshTools_5CMesh_1h_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
9949 __Pyx_RefNannyDeclarations
9951 __Pyx_RefNannySetupContext(
"__set__", 0);
9952 __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(2, 87, __pyx_L1_error)
9953 __pyx_v_self->h = __pyx_t_1;
9959 __Pyx_AddTraceback(
"cmeshTools.CMesh.h.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
9962 __Pyx_RefNannyFinishContext();
9975 static PyObject *__pyx_pw_10cmeshTools_5CMesh_4hMin_1__get__(PyObject *__pyx_v_self);
9976 static PyObject *__pyx_pw_10cmeshTools_5CMesh_4hMin_1__get__(PyObject *__pyx_v_self) {
9977 PyObject *__pyx_r = 0;
9978 __Pyx_RefNannyDeclarations
9979 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
9980 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_4hMin___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
9983 __Pyx_RefNannyFinishContext();
9987 static PyObject *__pyx_pf_10cmeshTools_5CMesh_4hMin___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
9988 PyObject *__pyx_r = NULL;
9989 __Pyx_RefNannyDeclarations
9990 PyObject *__pyx_t_1 = NULL;
9991 __Pyx_RefNannySetupContext(
"__get__", 0);
9992 __Pyx_XDECREF(__pyx_r);
9993 __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->hMin);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 88, __pyx_L1_error)
9994 __Pyx_GOTREF(__pyx_t_1);
9995 __pyx_r = __pyx_t_1;
10001 __Pyx_XDECREF(__pyx_t_1);
10002 __Pyx_AddTraceback(
"cmeshTools.CMesh.hMin.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10005 __Pyx_XGIVEREF(__pyx_r);
10006 __Pyx_RefNannyFinishContext();
10011 static int __pyx_pw_10cmeshTools_5CMesh_4hMin_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
10012 static int __pyx_pw_10cmeshTools_5CMesh_4hMin_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
10014 __Pyx_RefNannyDeclarations
10015 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
10016 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_4hMin_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
10019 __Pyx_RefNannyFinishContext();
10023 static int __pyx_pf_10cmeshTools_5CMesh_4hMin_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
10025 __Pyx_RefNannyDeclarations
10027 __Pyx_RefNannySetupContext(
"__set__", 0);
10028 __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(2, 88, __pyx_L1_error)
10029 __pyx_v_self->hMin = __pyx_t_1;
10035 __Pyx_AddTraceback(
"cmeshTools.CMesh.hMin.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10038 __Pyx_RefNannyFinishContext();
10050 static PyObject *__pyx_pw_10cmeshTools_5CMesh_8sigmaMax_1__get__(PyObject *__pyx_v_self);
10051 static PyObject *__pyx_pw_10cmeshTools_5CMesh_8sigmaMax_1__get__(PyObject *__pyx_v_self) {
10052 PyObject *__pyx_r = 0;
10053 __Pyx_RefNannyDeclarations
10054 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
10055 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_8sigmaMax___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
10058 __Pyx_RefNannyFinishContext();
10062 static PyObject *__pyx_pf_10cmeshTools_5CMesh_8sigmaMax___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
10063 PyObject *__pyx_r = NULL;
10064 __Pyx_RefNannyDeclarations
10065 PyObject *__pyx_t_1 = NULL;
10066 __Pyx_RefNannySetupContext(
"__get__", 0);
10067 __Pyx_XDECREF(__pyx_r);
10068 __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->sigmaMax);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 89, __pyx_L1_error)
10069 __Pyx_GOTREF(__pyx_t_1);
10070 __pyx_r = __pyx_t_1;
10076 __Pyx_XDECREF(__pyx_t_1);
10077 __Pyx_AddTraceback(
"cmeshTools.CMesh.sigmaMax.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10080 __Pyx_XGIVEREF(__pyx_r);
10081 __Pyx_RefNannyFinishContext();
10086 static int __pyx_pw_10cmeshTools_5CMesh_8sigmaMax_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
10087 static int __pyx_pw_10cmeshTools_5CMesh_8sigmaMax_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
10089 __Pyx_RefNannyDeclarations
10090 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
10091 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_8sigmaMax_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
10094 __Pyx_RefNannyFinishContext();
10098 static int __pyx_pf_10cmeshTools_5CMesh_8sigmaMax_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
10100 __Pyx_RefNannyDeclarations
10102 __Pyx_RefNannySetupContext(
"__set__", 0);
10103 __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(2, 89, __pyx_L1_error)
10104 __pyx_v_self->sigmaMax = __pyx_t_1;
10110 __Pyx_AddTraceback(
"cmeshTools.CMesh.sigmaMax.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10113 __Pyx_RefNannyFinishContext();
10124 static PyObject *__pyx_pw_10cmeshTools_5CMesh_6volume_1__get__(PyObject *__pyx_v_self);
10125 static PyObject *__pyx_pw_10cmeshTools_5CMesh_6volume_1__get__(PyObject *__pyx_v_self) {
10126 PyObject *__pyx_r = 0;
10127 __Pyx_RefNannyDeclarations
10128 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
10129 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_6volume___get__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
10132 __Pyx_RefNannyFinishContext();
10136 static PyObject *__pyx_pf_10cmeshTools_5CMesh_6volume___get__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
10137 PyObject *__pyx_r = NULL;
10138 __Pyx_RefNannyDeclarations
10139 PyObject *__pyx_t_1 = NULL;
10140 __Pyx_RefNannySetupContext(
"__get__", 0);
10141 __Pyx_XDECREF(__pyx_r);
10142 __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->volume);
if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 90, __pyx_L1_error)
10143 __Pyx_GOTREF(__pyx_t_1);
10144 __pyx_r = __pyx_t_1;
10150 __Pyx_XDECREF(__pyx_t_1);
10151 __Pyx_AddTraceback(
"cmeshTools.CMesh.volume.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10154 __Pyx_XGIVEREF(__pyx_r);
10155 __Pyx_RefNannyFinishContext();
10160 static int __pyx_pw_10cmeshTools_5CMesh_6volume_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
10161 static int __pyx_pw_10cmeshTools_5CMesh_6volume_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
10163 __Pyx_RefNannyDeclarations
10164 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
10165 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_6volume_2__set__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
10168 __Pyx_RefNannyFinishContext();
10172 static int __pyx_pf_10cmeshTools_5CMesh_6volume_2__set__(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, PyObject *__pyx_v_value) {
10174 __Pyx_RefNannyDeclarations
10176 __Pyx_RefNannySetupContext(
"__set__", 0);
10177 __pyx_t_1 = __pyx_PyFloat_AsDouble(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
double)-1) && PyErr_Occurred())) __PYX_ERR(2, 90, __pyx_L1_error)
10178 __pyx_v_self->volume = __pyx_t_1;
10184 __Pyx_AddTraceback(
"cmeshTools.CMesh.volume.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10187 __Pyx_RefNannyFinishContext();
10198 static PyObject *__pyx_pw_10cmeshTools_5CMesh_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
10199 static PyObject *__pyx_pw_10cmeshTools_5CMesh_7__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
10200 PyObject *__pyx_r = 0;
10201 __Pyx_RefNannyDeclarations
10202 __Pyx_RefNannySetupContext(
"__reduce_cython__ (wrapper)", 0);
10203 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_6__reduce_cython__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self));
10206 __Pyx_RefNannyFinishContext();
10210 static PyObject *__pyx_pf_10cmeshTools_5CMesh_6__reduce_cython__(CYTHON_UNUSED
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self) {
10211 PyObject *__pyx_r = NULL;
10212 __Pyx_RefNannyDeclarations
10213 PyObject *__pyx_t_1 = NULL;
10214 __Pyx_RefNannySetupContext(
"__reduce_cython__", 0);
10222 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__2, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error)
10223 __Pyx_GOTREF(__pyx_t_1);
10224 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
10225 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10226 __PYX_ERR(0, 2, __pyx_L1_error)
10236 __Pyx_XDECREF(__pyx_t_1);
10237 __Pyx_AddTraceback(
"cmeshTools.CMesh.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10239 __Pyx_XGIVEREF(__pyx_r);
10240 __Pyx_RefNannyFinishContext();
10252 static PyObject *__pyx_pw_10cmeshTools_5CMesh_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state);
10253 static PyObject *__pyx_pw_10cmeshTools_5CMesh_9__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
10254 PyObject *__pyx_r = 0;
10255 __Pyx_RefNannyDeclarations
10256 __Pyx_RefNannySetupContext(
"__setstate_cython__ (wrapper)", 0);
10257 __pyx_r = __pyx_pf_10cmeshTools_5CMesh_8__setstate_cython__(((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
10260 __Pyx_RefNannyFinishContext();
10264 static PyObject *__pyx_pf_10cmeshTools_5CMesh_8__setstate_cython__(CYTHON_UNUSED
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
10265 PyObject *__pyx_r = NULL;
10266 __Pyx_RefNannyDeclarations
10267 PyObject *__pyx_t_1 = NULL;
10268 __Pyx_RefNannySetupContext(
"__setstate_cython__", 0);
10275 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__3, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4, __pyx_L1_error)
10276 __Pyx_GOTREF(__pyx_t_1);
10277 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
10278 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10279 __PYX_ERR(0, 4, __pyx_L1_error)
10290 __Pyx_XDECREF(__pyx_t_1);
10291 __Pyx_AddTraceback(
"cmeshTools.CMesh.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
10293 __Pyx_XGIVEREF(__pyx_r);
10294 __Pyx_RefNannyFinishContext();
10307 static PyObject *__pyx_pw_10cmeshTools_1buildPythonMeshInterface(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
10308 static char __pyx_doc_10cmeshTools_buildPythonMeshInterface[] =
"\n function to be conform to old module, and to calls from MeshTools\n ";
10309 static PyMethodDef __pyx_mdef_10cmeshTools_1buildPythonMeshInterface = {
"buildPythonMeshInterface", (PyCFunction)__pyx_pw_10cmeshTools_1buildPythonMeshInterface, METH_O, __pyx_doc_10cmeshTools_buildPythonMeshInterface};
10310 static PyObject *__pyx_pw_10cmeshTools_1buildPythonMeshInterface(PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
10311 PyObject *__pyx_r = 0;
10312 __Pyx_RefNannyDeclarations
10313 __Pyx_RefNannySetupContext(
"buildPythonMeshInterface (wrapper)", 0);
10314 __pyx_r = __pyx_pf_10cmeshTools_buildPythonMeshInterface(__pyx_self, ((PyObject *)__pyx_v_cmesh));
10317 __Pyx_RefNannyFinishContext();
10321 static PyObject *__pyx_pf_10cmeshTools_buildPythonMeshInterface(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
10322 PyObject *__pyx_r = NULL;
10323 __Pyx_RefNannyDeclarations
10324 PyObject *__pyx_t_1 = NULL;
10325 PyObject *__pyx_t_2 = NULL;
10326 PyObject *__pyx_t_3 = NULL;
10327 PyObject *__pyx_t_4 = NULL;
10328 PyObject *__pyx_t_5 = NULL;
10329 PyObject *__pyx_t_6 = NULL;
10330 PyObject *__pyx_t_7 = NULL;
10331 PyObject *__pyx_t_8 = NULL;
10332 PyObject *__pyx_t_9 = NULL;
10333 PyObject *__pyx_t_10 = NULL;
10334 PyObject *__pyx_t_11 = NULL;
10335 PyObject *__pyx_t_12 = NULL;
10336 PyObject *__pyx_t_13 = NULL;
10337 PyObject *__pyx_t_14 = NULL;
10338 PyObject *__pyx_t_15 = NULL;
10339 PyObject *__pyx_t_16 = NULL;
10340 PyObject *__pyx_t_17 = NULL;
10341 PyObject *__pyx_t_18 = NULL;
10342 PyObject *__pyx_t_19 = NULL;
10343 PyObject *__pyx_t_20 = NULL;
10344 PyObject *__pyx_t_21 = NULL;
10345 PyObject *__pyx_t_22 = NULL;
10346 PyObject *__pyx_t_23 = NULL;
10347 PyObject *__pyx_t_24 = NULL;
10348 PyObject *__pyx_t_25 = NULL;
10349 PyObject *__pyx_t_26 = NULL;
10350 PyObject *__pyx_t_27 = NULL;
10351 PyObject *__pyx_t_28 = NULL;
10352 PyObject *__pyx_t_29 = NULL;
10353 PyObject *__pyx_t_30 = NULL;
10354 PyObject *__pyx_t_31 = NULL;
10355 PyObject *__pyx_t_32 = NULL;
10356 PyObject *__pyx_t_33 = NULL;
10357 PyObject *__pyx_t_34 = NULL;
10358 PyObject *__pyx_t_35 = NULL;
10359 PyObject *__pyx_t_36 = NULL;
10360 PyObject *__pyx_t_37 = NULL;
10361 PyObject *__pyx_t_38 = NULL;
10362 PyObject *__pyx_t_39 = NULL;
10363 PyObject *__pyx_t_40 = NULL;
10364 PyObject *__pyx_t_41 = NULL;
10365 PyObject *__pyx_t_42 = NULL;
10366 PyObject *__pyx_t_43 = NULL;
10367 PyObject *__pyx_t_44 = NULL;
10368 PyObject *__pyx_t_45 = NULL;
10369 PyObject *__pyx_t_46 = NULL;
10370 PyObject *__pyx_t_47 = NULL;
10371 PyObject *__pyx_t_48 = NULL;
10372 PyObject *__pyx_t_49 = NULL;
10373 PyObject *__pyx_t_50 = NULL;
10374 PyObject *__pyx_t_51 = NULL;
10375 __Pyx_RefNannySetupContext(
"buildPythonMeshInterface", 0);
10384 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_buildPythonMeshInterface);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 121, __pyx_L1_error)
10385 __Pyx_GOTREF(__pyx_t_2);
10387 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
10388 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
10389 if (likely(__pyx_t_3)) {
10390 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
10391 __Pyx_INCREF(__pyx_t_3);
10392 __Pyx_INCREF(
function);
10393 __Pyx_DECREF_SET(__pyx_t_2,
function);
10396 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
10397 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
10398 if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 121, __pyx_L1_error)
10399 __Pyx_GOTREF(__pyx_t_1);
10400 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10401 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
10410 __Pyx_XDECREF(__pyx_r);
10411 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nElements_global);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 122, __pyx_L1_error)
10412 __Pyx_GOTREF(__pyx_t_1);
10421 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nNodes_global);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 123, __pyx_L1_error)
10422 __Pyx_GOTREF(__pyx_t_2);
10431 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nNodes_element);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 124, __pyx_L1_error)
10432 __Pyx_GOTREF(__pyx_t_3);
10441 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nNodes_elementBoundary);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 125, __pyx_L1_error)
10442 __Pyx_GOTREF(__pyx_t_4);
10451 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nElementBoundaries_element);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 126, __pyx_L1_error)
10452 __Pyx_GOTREF(__pyx_t_5);
10461 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nElementBoundaries_global);
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 127, __pyx_L1_error)
10462 __Pyx_GOTREF(__pyx_t_6);
10471 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nInteriorElementBoundaries_globa);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 128, __pyx_L1_error)
10472 __Pyx_GOTREF(__pyx_t_7);
10481 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nExteriorElementBoundaries_globa);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 129, __pyx_L1_error)
10482 __Pyx_GOTREF(__pyx_t_8);
10491 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_max_nElements_node);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 130, __pyx_L1_error)
10492 __Pyx_GOTREF(__pyx_t_9);
10501 __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nEdges_global);
if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 131, __pyx_L1_error)
10502 __Pyx_GOTREF(__pyx_t_10);
10511 __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_max_nNodeNeighbors_node);
if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 132, __pyx_L1_error)
10512 __Pyx_GOTREF(__pyx_t_11);
10521 __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_elementNodesArray);
if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 133, __pyx_L1_error)
10522 __Pyx_GOTREF(__pyx_t_12);
10531 __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nodeElementsArray);
if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 134, __pyx_L1_error)
10532 __Pyx_GOTREF(__pyx_t_13);
10541 __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nodeElementOffsets);
if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 135, __pyx_L1_error)
10542 __Pyx_GOTREF(__pyx_t_14);
10551 __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_elementNeighborsArray);
if (unlikely(!__pyx_t_15)) __PYX_ERR(1, 136, __pyx_L1_error)
10552 __Pyx_GOTREF(__pyx_t_15);
10561 __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_elementBoundariesArray);
if (unlikely(!__pyx_t_16)) __PYX_ERR(1, 137, __pyx_L1_error)
10562 __Pyx_GOTREF(__pyx_t_16);
10571 __pyx_t_17 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_elementBoundaryNodesArray);
if (unlikely(!__pyx_t_17)) __PYX_ERR(1, 138, __pyx_L1_error)
10572 __Pyx_GOTREF(__pyx_t_17);
10581 __pyx_t_18 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_elementBoundaryElementsArray);
if (unlikely(!__pyx_t_18)) __PYX_ERR(1, 139, __pyx_L1_error)
10582 __Pyx_GOTREF(__pyx_t_18);
10591 __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_elementBoundaryLocalElementBound);
if (unlikely(!__pyx_t_19)) __PYX_ERR(1, 140, __pyx_L1_error)
10592 __Pyx_GOTREF(__pyx_t_19);
10601 __pyx_t_20 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_interiorElementBoundariesArray);
if (unlikely(!__pyx_t_20)) __PYX_ERR(1, 141, __pyx_L1_error)
10602 __Pyx_GOTREF(__pyx_t_20);
10611 __pyx_t_21 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_exteriorElementBoundariesArray);
if (unlikely(!__pyx_t_21)) __PYX_ERR(1, 142, __pyx_L1_error)
10612 __Pyx_GOTREF(__pyx_t_21);
10621 __pyx_t_22 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_edgeNodesArray);
if (unlikely(!__pyx_t_22)) __PYX_ERR(1, 143, __pyx_L1_error)
10622 __Pyx_GOTREF(__pyx_t_22);
10631 __pyx_t_23 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nodeStarArray);
if (unlikely(!__pyx_t_23)) __PYX_ERR(1, 144, __pyx_L1_error)
10632 __Pyx_GOTREF(__pyx_t_23);
10641 __pyx_t_24 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nodeStarOffsets);
if (unlikely(!__pyx_t_24)) __PYX_ERR(1, 145, __pyx_L1_error)
10642 __Pyx_GOTREF(__pyx_t_24);
10651 __pyx_t_25 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_elementMaterialTypes);
if (unlikely(!__pyx_t_25)) __PYX_ERR(1, 146, __pyx_L1_error)
10652 __Pyx_GOTREF(__pyx_t_25);
10661 __pyx_t_26 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_elementBoundaryMaterialTypes);
if (unlikely(!__pyx_t_26)) __PYX_ERR(1, 147, __pyx_L1_error)
10662 __Pyx_GOTREF(__pyx_t_26);
10671 __pyx_t_27 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nodeMaterialTypes);
if (unlikely(!__pyx_t_27)) __PYX_ERR(1, 148, __pyx_L1_error)
10672 __Pyx_GOTREF(__pyx_t_27);
10681 __pyx_t_28 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nodeArray);
if (unlikely(!__pyx_t_28)) __PYX_ERR(1, 149, __pyx_L1_error)
10682 __Pyx_GOTREF(__pyx_t_28);
10691 __pyx_t_29 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nx);
if (unlikely(!__pyx_t_29)) __PYX_ERR(1, 150, __pyx_L1_error)
10692 __Pyx_GOTREF(__pyx_t_29);
10701 __pyx_t_30 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_ny);
if (unlikely(!__pyx_t_30)) __PYX_ERR(1, 151, __pyx_L1_error)
10702 __Pyx_GOTREF(__pyx_t_30);
10711 __pyx_t_31 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nz);
if (unlikely(!__pyx_t_31)) __PYX_ERR(1, 152, __pyx_L1_error)
10712 __Pyx_GOTREF(__pyx_t_31);
10721 __pyx_t_32 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_px);
if (unlikely(!__pyx_t_32)) __PYX_ERR(1, 153, __pyx_L1_error)
10722 __Pyx_GOTREF(__pyx_t_32);
10731 __pyx_t_33 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_py);
if (unlikely(!__pyx_t_33)) __PYX_ERR(1, 154, __pyx_L1_error)
10732 __Pyx_GOTREF(__pyx_t_33);
10741 __pyx_t_34 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_pz);
if (unlikely(!__pyx_t_34)) __PYX_ERR(1, 155, __pyx_L1_error)
10742 __Pyx_GOTREF(__pyx_t_34);
10751 __pyx_t_35 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_elementIJK);
if (unlikely(!__pyx_t_35)) __PYX_ERR(1, 156, __pyx_L1_error)
10752 __Pyx_GOTREF(__pyx_t_35);
10761 __pyx_t_36 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_weights);
if (unlikely(!__pyx_t_36)) __PYX_ERR(1, 157, __pyx_L1_error)
10762 __Pyx_GOTREF(__pyx_t_36);
10771 __pyx_t_37 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_U_KNOT);
if (unlikely(!__pyx_t_37)) __PYX_ERR(1, 158, __pyx_L1_error)
10772 __Pyx_GOTREF(__pyx_t_37);
10781 __pyx_t_38 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_V_KNOT);
if (unlikely(!__pyx_t_38)) __PYX_ERR(1, 159, __pyx_L1_error)
10782 __Pyx_GOTREF(__pyx_t_38);
10791 __pyx_t_39 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_W_KNOT);
if (unlikely(!__pyx_t_39)) __PYX_ERR(1, 160, __pyx_L1_error)
10792 __Pyx_GOTREF(__pyx_t_39);
10801 __pyx_t_40 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_elementDiametersArray);
if (unlikely(!__pyx_t_40)) __PYX_ERR(1, 161, __pyx_L1_error)
10802 __Pyx_GOTREF(__pyx_t_40);
10811 __pyx_t_41 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_elementInnerDiametersArray);
if (unlikely(!__pyx_t_41)) __PYX_ERR(1, 162, __pyx_L1_error)
10812 __Pyx_GOTREF(__pyx_t_41);
10821 __pyx_t_42 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_elementBoundaryDiametersArray);
if (unlikely(!__pyx_t_42)) __PYX_ERR(1, 163, __pyx_L1_error)
10822 __Pyx_GOTREF(__pyx_t_42);
10831 __pyx_t_43 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_elementBarycentersArray);
if (unlikely(!__pyx_t_43)) __PYX_ERR(1, 164, __pyx_L1_error)
10832 __Pyx_GOTREF(__pyx_t_43);
10841 __pyx_t_44 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_elementBoundaryBarycentersArray);
if (unlikely(!__pyx_t_44)) __PYX_ERR(1, 165, __pyx_L1_error)
10842 __Pyx_GOTREF(__pyx_t_44);
10851 __pyx_t_45 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nodeDiametersArray);
if (unlikely(!__pyx_t_45)) __PYX_ERR(1, 166, __pyx_L1_error)
10852 __Pyx_GOTREF(__pyx_t_45);
10861 __pyx_t_46 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nodeSupportArray);
if (unlikely(!__pyx_t_46)) __PYX_ERR(1, 167, __pyx_L1_error)
10862 __Pyx_GOTREF(__pyx_t_46);
10871 __pyx_t_47 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_h);
if (unlikely(!__pyx_t_47)) __PYX_ERR(1, 168, __pyx_L1_error)
10872 __Pyx_GOTREF(__pyx_t_47);
10881 __pyx_t_48 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_hMin);
if (unlikely(!__pyx_t_48)) __PYX_ERR(1, 169, __pyx_L1_error)
10882 __Pyx_GOTREF(__pyx_t_48);
10891 __pyx_t_49 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_sigmaMax);
if (unlikely(!__pyx_t_49)) __PYX_ERR(1, 170, __pyx_L1_error)
10892 __Pyx_GOTREF(__pyx_t_49);
10901 __pyx_t_50 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_volume);
if (unlikely(!__pyx_t_50)) __PYX_ERR(1, 171, __pyx_L1_error)
10902 __Pyx_GOTREF(__pyx_t_50);
10911 __pyx_t_51 = PyTuple_New(50);
if (unlikely(!__pyx_t_51)) __PYX_ERR(1, 122, __pyx_L1_error)
10912 __Pyx_GOTREF(__pyx_t_51);
10913 __Pyx_GIVEREF(__pyx_t_1);
10914 PyTuple_SET_ITEM(__pyx_t_51, 0, __pyx_t_1);
10915 __Pyx_GIVEREF(__pyx_t_2);
10916 PyTuple_SET_ITEM(__pyx_t_51, 1, __pyx_t_2);
10917 __Pyx_GIVEREF(__pyx_t_3);
10918 PyTuple_SET_ITEM(__pyx_t_51, 2, __pyx_t_3);
10919 __Pyx_GIVEREF(__pyx_t_4);
10920 PyTuple_SET_ITEM(__pyx_t_51, 3, __pyx_t_4);
10921 __Pyx_GIVEREF(__pyx_t_5);
10922 PyTuple_SET_ITEM(__pyx_t_51, 4, __pyx_t_5);
10923 __Pyx_GIVEREF(__pyx_t_6);
10924 PyTuple_SET_ITEM(__pyx_t_51, 5, __pyx_t_6);
10925 __Pyx_GIVEREF(__pyx_t_7);
10926 PyTuple_SET_ITEM(__pyx_t_51, 6, __pyx_t_7);
10927 __Pyx_GIVEREF(__pyx_t_8);
10928 PyTuple_SET_ITEM(__pyx_t_51, 7, __pyx_t_8);
10929 __Pyx_GIVEREF(__pyx_t_9);
10930 PyTuple_SET_ITEM(__pyx_t_51, 8, __pyx_t_9);
10931 __Pyx_GIVEREF(__pyx_t_10);
10932 PyTuple_SET_ITEM(__pyx_t_51, 9, __pyx_t_10);
10933 __Pyx_GIVEREF(__pyx_t_11);
10934 PyTuple_SET_ITEM(__pyx_t_51, 10, __pyx_t_11);
10935 __Pyx_GIVEREF(__pyx_t_12);
10936 PyTuple_SET_ITEM(__pyx_t_51, 11, __pyx_t_12);
10937 __Pyx_GIVEREF(__pyx_t_13);
10938 PyTuple_SET_ITEM(__pyx_t_51, 12, __pyx_t_13);
10939 __Pyx_GIVEREF(__pyx_t_14);
10940 PyTuple_SET_ITEM(__pyx_t_51, 13, __pyx_t_14);
10941 __Pyx_GIVEREF(__pyx_t_15);
10942 PyTuple_SET_ITEM(__pyx_t_51, 14, __pyx_t_15);
10943 __Pyx_GIVEREF(__pyx_t_16);
10944 PyTuple_SET_ITEM(__pyx_t_51, 15, __pyx_t_16);
10945 __Pyx_GIVEREF(__pyx_t_17);
10946 PyTuple_SET_ITEM(__pyx_t_51, 16, __pyx_t_17);
10947 __Pyx_GIVEREF(__pyx_t_18);
10948 PyTuple_SET_ITEM(__pyx_t_51, 17, __pyx_t_18);
10949 __Pyx_GIVEREF(__pyx_t_19);
10950 PyTuple_SET_ITEM(__pyx_t_51, 18, __pyx_t_19);
10951 __Pyx_GIVEREF(__pyx_t_20);
10952 PyTuple_SET_ITEM(__pyx_t_51, 19, __pyx_t_20);
10953 __Pyx_GIVEREF(__pyx_t_21);
10954 PyTuple_SET_ITEM(__pyx_t_51, 20, __pyx_t_21);
10955 __Pyx_GIVEREF(__pyx_t_22);
10956 PyTuple_SET_ITEM(__pyx_t_51, 21, __pyx_t_22);
10957 __Pyx_GIVEREF(__pyx_t_23);
10958 PyTuple_SET_ITEM(__pyx_t_51, 22, __pyx_t_23);
10959 __Pyx_GIVEREF(__pyx_t_24);
10960 PyTuple_SET_ITEM(__pyx_t_51, 23, __pyx_t_24);
10961 __Pyx_GIVEREF(__pyx_t_25);
10962 PyTuple_SET_ITEM(__pyx_t_51, 24, __pyx_t_25);
10963 __Pyx_GIVEREF(__pyx_t_26);
10964 PyTuple_SET_ITEM(__pyx_t_51, 25, __pyx_t_26);
10965 __Pyx_GIVEREF(__pyx_t_27);
10966 PyTuple_SET_ITEM(__pyx_t_51, 26, __pyx_t_27);
10967 __Pyx_GIVEREF(__pyx_t_28);
10968 PyTuple_SET_ITEM(__pyx_t_51, 27, __pyx_t_28);
10969 __Pyx_GIVEREF(__pyx_t_29);
10970 PyTuple_SET_ITEM(__pyx_t_51, 28, __pyx_t_29);
10971 __Pyx_GIVEREF(__pyx_t_30);
10972 PyTuple_SET_ITEM(__pyx_t_51, 29, __pyx_t_30);
10973 __Pyx_GIVEREF(__pyx_t_31);
10974 PyTuple_SET_ITEM(__pyx_t_51, 30, __pyx_t_31);
10975 __Pyx_GIVEREF(__pyx_t_32);
10976 PyTuple_SET_ITEM(__pyx_t_51, 31, __pyx_t_32);
10977 __Pyx_GIVEREF(__pyx_t_33);
10978 PyTuple_SET_ITEM(__pyx_t_51, 32, __pyx_t_33);
10979 __Pyx_GIVEREF(__pyx_t_34);
10980 PyTuple_SET_ITEM(__pyx_t_51, 33, __pyx_t_34);
10981 __Pyx_GIVEREF(__pyx_t_35);
10982 PyTuple_SET_ITEM(__pyx_t_51, 34, __pyx_t_35);
10983 __Pyx_GIVEREF(__pyx_t_36);
10984 PyTuple_SET_ITEM(__pyx_t_51, 35, __pyx_t_36);
10985 __Pyx_GIVEREF(__pyx_t_37);
10986 PyTuple_SET_ITEM(__pyx_t_51, 36, __pyx_t_37);
10987 __Pyx_GIVEREF(__pyx_t_38);
10988 PyTuple_SET_ITEM(__pyx_t_51, 37, __pyx_t_38);
10989 __Pyx_GIVEREF(__pyx_t_39);
10990 PyTuple_SET_ITEM(__pyx_t_51, 38, __pyx_t_39);
10991 __Pyx_GIVEREF(__pyx_t_40);
10992 PyTuple_SET_ITEM(__pyx_t_51, 39, __pyx_t_40);
10993 __Pyx_GIVEREF(__pyx_t_41);
10994 PyTuple_SET_ITEM(__pyx_t_51, 40, __pyx_t_41);
10995 __Pyx_GIVEREF(__pyx_t_42);
10996 PyTuple_SET_ITEM(__pyx_t_51, 41, __pyx_t_42);
10997 __Pyx_GIVEREF(__pyx_t_43);
10998 PyTuple_SET_ITEM(__pyx_t_51, 42, __pyx_t_43);
10999 __Pyx_GIVEREF(__pyx_t_44);
11000 PyTuple_SET_ITEM(__pyx_t_51, 43, __pyx_t_44);
11001 __Pyx_GIVEREF(__pyx_t_45);
11002 PyTuple_SET_ITEM(__pyx_t_51, 44, __pyx_t_45);
11003 __Pyx_GIVEREF(__pyx_t_46);
11004 PyTuple_SET_ITEM(__pyx_t_51, 45, __pyx_t_46);
11005 __Pyx_GIVEREF(__pyx_t_47);
11006 PyTuple_SET_ITEM(__pyx_t_51, 46, __pyx_t_47);
11007 __Pyx_GIVEREF(__pyx_t_48);
11008 PyTuple_SET_ITEM(__pyx_t_51, 47, __pyx_t_48);
11009 __Pyx_GIVEREF(__pyx_t_49);
11010 PyTuple_SET_ITEM(__pyx_t_51, 48, __pyx_t_49);
11011 __Pyx_GIVEREF(__pyx_t_50);
11012 PyTuple_SET_ITEM(__pyx_t_51, 49, __pyx_t_50);
11063 __pyx_r = __pyx_t_51;
11077 __Pyx_XDECREF(__pyx_t_1);
11078 __Pyx_XDECREF(__pyx_t_2);
11079 __Pyx_XDECREF(__pyx_t_3);
11080 __Pyx_XDECREF(__pyx_t_4);
11081 __Pyx_XDECREF(__pyx_t_5);
11082 __Pyx_XDECREF(__pyx_t_6);
11083 __Pyx_XDECREF(__pyx_t_7);
11084 __Pyx_XDECREF(__pyx_t_8);
11085 __Pyx_XDECREF(__pyx_t_9);
11086 __Pyx_XDECREF(__pyx_t_10);
11087 __Pyx_XDECREF(__pyx_t_11);
11088 __Pyx_XDECREF(__pyx_t_12);
11089 __Pyx_XDECREF(__pyx_t_13);
11090 __Pyx_XDECREF(__pyx_t_14);
11091 __Pyx_XDECREF(__pyx_t_15);
11092 __Pyx_XDECREF(__pyx_t_16);
11093 __Pyx_XDECREF(__pyx_t_17);
11094 __Pyx_XDECREF(__pyx_t_18);
11095 __Pyx_XDECREF(__pyx_t_19);
11096 __Pyx_XDECREF(__pyx_t_20);
11097 __Pyx_XDECREF(__pyx_t_21);
11098 __Pyx_XDECREF(__pyx_t_22);
11099 __Pyx_XDECREF(__pyx_t_23);
11100 __Pyx_XDECREF(__pyx_t_24);
11101 __Pyx_XDECREF(__pyx_t_25);
11102 __Pyx_XDECREF(__pyx_t_26);
11103 __Pyx_XDECREF(__pyx_t_27);
11104 __Pyx_XDECREF(__pyx_t_28);
11105 __Pyx_XDECREF(__pyx_t_29);
11106 __Pyx_XDECREF(__pyx_t_30);
11107 __Pyx_XDECREF(__pyx_t_31);
11108 __Pyx_XDECREF(__pyx_t_32);
11109 __Pyx_XDECREF(__pyx_t_33);
11110 __Pyx_XDECREF(__pyx_t_34);
11111 __Pyx_XDECREF(__pyx_t_35);
11112 __Pyx_XDECREF(__pyx_t_36);
11113 __Pyx_XDECREF(__pyx_t_37);
11114 __Pyx_XDECREF(__pyx_t_38);
11115 __Pyx_XDECREF(__pyx_t_39);
11116 __Pyx_XDECREF(__pyx_t_40);
11117 __Pyx_XDECREF(__pyx_t_41);
11118 __Pyx_XDECREF(__pyx_t_42);
11119 __Pyx_XDECREF(__pyx_t_43);
11120 __Pyx_XDECREF(__pyx_t_44);
11121 __Pyx_XDECREF(__pyx_t_45);
11122 __Pyx_XDECREF(__pyx_t_46);
11123 __Pyx_XDECREF(__pyx_t_47);
11124 __Pyx_XDECREF(__pyx_t_48);
11125 __Pyx_XDECREF(__pyx_t_49);
11126 __Pyx_XDECREF(__pyx_t_50);
11127 __Pyx_XDECREF(__pyx_t_51);
11128 __Pyx_AddTraceback(
"cmeshTools.buildPythonMeshInterface", __pyx_clineno, __pyx_lineno, __pyx_filename);
11131 __Pyx_XGIVEREF(__pyx_r);
11132 __Pyx_RefNannyFinishContext();
11145 static PyObject *__pyx_pw_10cmeshTools_3buildPythonMeshInterfaceNoArrays(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
11146 static char __pyx_doc_10cmeshTools_2buildPythonMeshInterfaceNoArrays[] =
"\n function to be conform to old module, and to calls from MeshTools\n ";
11147 static PyMethodDef __pyx_mdef_10cmeshTools_3buildPythonMeshInterfaceNoArrays = {
"buildPythonMeshInterfaceNoArrays", (PyCFunction)__pyx_pw_10cmeshTools_3buildPythonMeshInterfaceNoArrays, METH_O, __pyx_doc_10cmeshTools_2buildPythonMeshInterfaceNoArrays};
11148 static PyObject *__pyx_pw_10cmeshTools_3buildPythonMeshInterfaceNoArrays(PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
11149 PyObject *__pyx_r = 0;
11150 __Pyx_RefNannyDeclarations
11151 __Pyx_RefNannySetupContext(
"buildPythonMeshInterfaceNoArrays (wrapper)", 0);
11152 __pyx_r = __pyx_pf_10cmeshTools_2buildPythonMeshInterfaceNoArrays(__pyx_self, ((PyObject *)__pyx_v_cmesh));
11155 __Pyx_RefNannyFinishContext();
11159 static PyObject *__pyx_pf_10cmeshTools_2buildPythonMeshInterfaceNoArrays(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
11160 PyObject *__pyx_r = NULL;
11161 __Pyx_RefNannyDeclarations
11162 PyObject *__pyx_t_1 = NULL;
11163 PyObject *__pyx_t_2 = NULL;
11164 PyObject *__pyx_t_3 = NULL;
11165 PyObject *__pyx_t_4 = NULL;
11166 PyObject *__pyx_t_5 = NULL;
11167 PyObject *__pyx_t_6 = NULL;
11168 PyObject *__pyx_t_7 = NULL;
11169 PyObject *__pyx_t_8 = NULL;
11170 PyObject *__pyx_t_9 = NULL;
11171 PyObject *__pyx_t_10 = NULL;
11172 PyObject *__pyx_t_11 = NULL;
11173 PyObject *__pyx_t_12 = NULL;
11174 PyObject *__pyx_t_13 = NULL;
11175 PyObject *__pyx_t_14 = NULL;
11176 PyObject *__pyx_t_15 = NULL;
11177 PyObject *__pyx_t_16 = NULL;
11178 __Pyx_RefNannySetupContext(
"buildPythonMeshInterfaceNoArrays", 0);
11187 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_buildPythonMeshInterfaceNoArrays);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 177, __pyx_L1_error)
11188 __Pyx_GOTREF(__pyx_t_2);
11190 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
11191 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
11192 if (likely(__pyx_t_3)) {
11193 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
11194 __Pyx_INCREF(__pyx_t_3);
11195 __Pyx_INCREF(
function);
11196 __Pyx_DECREF_SET(__pyx_t_2,
function);
11199 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
11200 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
11201 if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 177, __pyx_L1_error)
11202 __Pyx_GOTREF(__pyx_t_1);
11203 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11204 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11213 __Pyx_XDECREF(__pyx_r);
11214 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nElements_global);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 178, __pyx_L1_error)
11215 __Pyx_GOTREF(__pyx_t_1);
11224 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nNodes_global);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 179, __pyx_L1_error)
11225 __Pyx_GOTREF(__pyx_t_2);
11234 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nNodes_element);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 180, __pyx_L1_error)
11235 __Pyx_GOTREF(__pyx_t_3);
11244 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nNodes_elementBoundary);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 181, __pyx_L1_error)
11245 __Pyx_GOTREF(__pyx_t_4);
11254 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nElementBoundaries_element);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 182, __pyx_L1_error)
11255 __Pyx_GOTREF(__pyx_t_5);
11264 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nElementBoundaries_global);
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 183, __pyx_L1_error)
11265 __Pyx_GOTREF(__pyx_t_6);
11274 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nInteriorElementBoundaries_globa);
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 184, __pyx_L1_error)
11275 __Pyx_GOTREF(__pyx_t_7);
11284 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nExteriorElementBoundaries_globa);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 185, __pyx_L1_error)
11285 __Pyx_GOTREF(__pyx_t_8);
11294 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_max_nElements_node);
if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 186, __pyx_L1_error)
11295 __Pyx_GOTREF(__pyx_t_9);
11304 __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_nEdges_global);
if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 187, __pyx_L1_error)
11305 __Pyx_GOTREF(__pyx_t_10);
11314 __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_max_nNodeNeighbors_node);
if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 188, __pyx_L1_error)
11315 __Pyx_GOTREF(__pyx_t_11);
11324 __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_h);
if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 189, __pyx_L1_error)
11325 __Pyx_GOTREF(__pyx_t_12);
11334 __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_hMin);
if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 190, __pyx_L1_error)
11335 __Pyx_GOTREF(__pyx_t_13);
11344 __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_sigmaMax);
if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 191, __pyx_L1_error)
11345 __Pyx_GOTREF(__pyx_t_14);
11354 __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmesh, __pyx_n_s_volume);
if (unlikely(!__pyx_t_15)) __PYX_ERR(1, 192, __pyx_L1_error)
11355 __Pyx_GOTREF(__pyx_t_15);
11364 __pyx_t_16 = PyTuple_New(15);
if (unlikely(!__pyx_t_16)) __PYX_ERR(1, 178, __pyx_L1_error)
11365 __Pyx_GOTREF(__pyx_t_16);
11366 __Pyx_GIVEREF(__pyx_t_1);
11367 PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_1);
11368 __Pyx_GIVEREF(__pyx_t_2);
11369 PyTuple_SET_ITEM(__pyx_t_16, 1, __pyx_t_2);
11370 __Pyx_GIVEREF(__pyx_t_3);
11371 PyTuple_SET_ITEM(__pyx_t_16, 2, __pyx_t_3);
11372 __Pyx_GIVEREF(__pyx_t_4);
11373 PyTuple_SET_ITEM(__pyx_t_16, 3, __pyx_t_4);
11374 __Pyx_GIVEREF(__pyx_t_5);
11375 PyTuple_SET_ITEM(__pyx_t_16, 4, __pyx_t_5);
11376 __Pyx_GIVEREF(__pyx_t_6);
11377 PyTuple_SET_ITEM(__pyx_t_16, 5, __pyx_t_6);
11378 __Pyx_GIVEREF(__pyx_t_7);
11379 PyTuple_SET_ITEM(__pyx_t_16, 6, __pyx_t_7);
11380 __Pyx_GIVEREF(__pyx_t_8);
11381 PyTuple_SET_ITEM(__pyx_t_16, 7, __pyx_t_8);
11382 __Pyx_GIVEREF(__pyx_t_9);
11383 PyTuple_SET_ITEM(__pyx_t_16, 8, __pyx_t_9);
11384 __Pyx_GIVEREF(__pyx_t_10);
11385 PyTuple_SET_ITEM(__pyx_t_16, 9, __pyx_t_10);
11386 __Pyx_GIVEREF(__pyx_t_11);
11387 PyTuple_SET_ITEM(__pyx_t_16, 10, __pyx_t_11);
11388 __Pyx_GIVEREF(__pyx_t_12);
11389 PyTuple_SET_ITEM(__pyx_t_16, 11, __pyx_t_12);
11390 __Pyx_GIVEREF(__pyx_t_13);
11391 PyTuple_SET_ITEM(__pyx_t_16, 12, __pyx_t_13);
11392 __Pyx_GIVEREF(__pyx_t_14);
11393 PyTuple_SET_ITEM(__pyx_t_16, 13, __pyx_t_14);
11394 __Pyx_GIVEREF(__pyx_t_15);
11395 PyTuple_SET_ITEM(__pyx_t_16, 14, __pyx_t_15);
11411 __pyx_r = __pyx_t_16;
11425 __Pyx_XDECREF(__pyx_t_1);
11426 __Pyx_XDECREF(__pyx_t_2);
11427 __Pyx_XDECREF(__pyx_t_3);
11428 __Pyx_XDECREF(__pyx_t_4);
11429 __Pyx_XDECREF(__pyx_t_5);
11430 __Pyx_XDECREF(__pyx_t_6);
11431 __Pyx_XDECREF(__pyx_t_7);
11432 __Pyx_XDECREF(__pyx_t_8);
11433 __Pyx_XDECREF(__pyx_t_9);
11434 __Pyx_XDECREF(__pyx_t_10);
11435 __Pyx_XDECREF(__pyx_t_11);
11436 __Pyx_XDECREF(__pyx_t_12);
11437 __Pyx_XDECREF(__pyx_t_13);
11438 __Pyx_XDECREF(__pyx_t_14);
11439 __Pyx_XDECREF(__pyx_t_15);
11440 __Pyx_XDECREF(__pyx_t_16);
11441 __Pyx_AddTraceback(
"cmeshTools.buildPythonMeshInterfaceNoArrays", __pyx_clineno, __pyx_lineno, __pyx_filename);
11444 __Pyx_XGIVEREF(__pyx_r);
11445 __Pyx_RefNannyFinishContext();
11457 static struct __pyx_obj_10cmeshTools_CMesh *__pyx_f_10cmeshTools_CMesh_FromMesh(
struct Mesh __pyx_v_mesh) {
11458 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_CMeshnew = NULL;
11459 struct __pyx_obj_10cmeshTools_CMesh *__pyx_r = NULL;
11460 __Pyx_RefNannyDeclarations
11461 PyObject *__pyx_t_1 = NULL;
11462 __Pyx_RefNannySetupContext(
"CMesh_FromMesh", 0);
11471 __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_10cmeshTools_CMesh));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 195, __pyx_L1_error)
11472 __Pyx_GOTREF(__pyx_t_1);
11473 __pyx_v_CMeshnew = ((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_t_1);
11483 __pyx_v_CMeshnew->mesh = __pyx_v_mesh;
11492 __Pyx_XDECREF(((PyObject *)__pyx_r));
11493 __Pyx_INCREF(((PyObject *)__pyx_v_CMeshnew));
11494 __pyx_r = __pyx_v_CMeshnew;
11507 __Pyx_XDECREF(__pyx_t_1);
11508 __Pyx_AddTraceback(
"cmeshTools.CMesh_FromMesh", __pyx_clineno, __pyx_lineno, __pyx_filename);
11511 __Pyx_XDECREF((PyObject *)__pyx_v_CMeshnew);
11512 __Pyx_XGIVEREF((PyObject *)__pyx_r);
11513 __Pyx_RefNannyFinishContext();
11526 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
11527 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11528 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh = 0;
11529 PyObject *__pyx_v_nLevels = 0;
11531 __Pyx_RefNannyDeclarations
11532 __Pyx_RefNannySetupContext(
"__init__ (wrapper)", 0);
11534 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cmesh,&__pyx_n_s_nLevels,0};
11535 PyObject* values[2] = {0,0};
11536 if (unlikely(__pyx_kwds)) {
11537 Py_ssize_t kw_args;
11538 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
11539 switch (pos_args) {
11540 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11541 CYTHON_FALLTHROUGH;
11542 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11543 CYTHON_FALLTHROUGH;
11545 default:
goto __pyx_L5_argtuple_error;
11547 kw_args = PyDict_Size(__pyx_kwds);
11548 switch (pos_args) {
11550 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmesh)) != 0)) kw_args--;
11551 else goto __pyx_L5_argtuple_error;
11552 CYTHON_FALLTHROUGH;
11554 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nLevels)) != 0)) kw_args--;
11556 __Pyx_RaiseArgtupleInvalid(
"__init__", 1, 2, 2, 1); __PYX_ERR(1, 207, __pyx_L3_error)
11559 if (unlikely(kw_args > 0)) {
11560 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__init__") < 0)) __PYX_ERR(1, 207, __pyx_L3_error)
11562 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
11563 goto __pyx_L5_argtuple_error;
11565 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11566 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11568 __pyx_v_cmesh = ((
struct __pyx_obj_10cmeshTools_CMesh *)values[0]);
11569 __pyx_v_nLevels = values[1];
11571 goto __pyx_L4_argument_unpacking_done;
11572 __pyx_L5_argtuple_error:;
11573 __Pyx_RaiseArgtupleInvalid(
"__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 207, __pyx_L3_error)
11575 __Pyx_AddTraceback(
"cmeshTools.CMultilevelMesh.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
11576 __Pyx_RefNannyFinishContext();
11578 __pyx_L4_argument_unpacking_done:;
11579 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 207, __pyx_L1_error)
11580 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh___init__(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self), __pyx_v_cmesh, __pyx_v_nLevels);
11587 __Pyx_RefNannyFinishContext();
11591 static int __pyx_pf_10cmeshTools_15CMultilevelMesh___init__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_nLevels) {
11592 PyObject *__pyx_v_i = NULL;
11594 __Pyx_RefNannyDeclarations
11598 PyObject *__pyx_t_4 = NULL;
11599 PyObject *__pyx_t_5 = NULL;
11600 Py_ssize_t __pyx_t_6;
11601 PyObject *(*__pyx_t_7)(PyObject *);
11602 Py_ssize_t __pyx_t_8;
11603 Py_ssize_t __pyx_t_9;
11604 Py_ssize_t __pyx_t_10;
11606 __Pyx_RefNannySetupContext(
"__init__", 0);
11615 __pyx_v_self->multilevelMesh = __pyx_t_1;
11624 __pyx_t_2 = ((__pyx_v_cmesh->mesh.nNodes_element == 2) != 0);
11634 __pyx_t_3 = __Pyx_PyInt_As_int(__pyx_v_nLevels);
if (unlikely((__pyx_t_3 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 210, __pyx_L1_error)
11652 __pyx_t_4 = PyTuple_New(2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 214, __pyx_L1_error)
11653 __Pyx_GOTREF(__pyx_t_4);
11654 __Pyx_INCREF(__pyx_int_1);
11655 __Pyx_GIVEREF(__pyx_int_1);
11656 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_int_1);
11657 __Pyx_INCREF(__pyx_v_nLevels);
11658 __Pyx_GIVEREF(__pyx_v_nLevels);
11659 PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_nLevels);
11660 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_4, NULL);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 214, __pyx_L1_error)
11661 __Pyx_GOTREF(__pyx_t_5);
11662 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11663 if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) {
11664 __pyx_t_4 = __pyx_t_5; __Pyx_INCREF(__pyx_t_4); __pyx_t_6 = 0;
11667 __pyx_t_6 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_5);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 214, __pyx_L1_error)
11668 __Pyx_GOTREF(__pyx_t_4);
11669 __pyx_t_7 = Py_TYPE(__pyx_t_4)->tp_iternext;
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 214, __pyx_L1_error)
11671 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11673 if (likely(!__pyx_t_7)) {
11674 if (likely(PyList_CheckExact(__pyx_t_4))) {
11675 if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_4))
break;
11676 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
11677 __pyx_t_5 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++;
if (unlikely(0 < 0)) __PYX_ERR(1, 214, __pyx_L1_error)
11679 __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 214, __pyx_L1_error)
11680 __Pyx_GOTREF(__pyx_t_5);
11683 if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_4))
break;
11684 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
11685 __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++;
if (unlikely(0 < 0)) __PYX_ERR(1, 214, __pyx_L1_error)
11687 __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 214, __pyx_L1_error)
11688 __Pyx_GOTREF(__pyx_t_5);
11692 __pyx_t_5 = __pyx_t_7(__pyx_t_4);
11693 if (unlikely(!__pyx_t_5)) {
11694 PyObject* exc_type = PyErr_Occurred();
11696 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
11697 else __PYX_ERR(1, 214, __pyx_L1_error)
11701 __Pyx_GOTREF(__pyx_t_5);
11703 __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_5);
11713 __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 215, __pyx_L1_error)
11723 __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 216, __pyx_L1_error)
11733 __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 217, __pyx_L1_error)
11743 __pyx_t_5 = __Pyx_PyInt_SubtractObjC(__pyx_v_i, __pyx_int_1, 1, 0);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 218, __pyx_L1_error)
11744 __Pyx_GOTREF(__pyx_t_5);
11745 __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_t_5);
if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 218, __pyx_L1_error)
11746 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11755 __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 219, __pyx_L1_error)
11764 __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 220, __pyx_L1_error)
11773 (void)(
assignElementBoundaryMaterialTypesFromParent((__pyx_v_self->multilevelMesh.meshArray[__pyx_t_8]), (__pyx_v_self->multilevelMesh.meshArray[__pyx_t_9]), (__pyx_v_self->multilevelMesh.elementParentsArray[__pyx_t_10]), 1));
11783 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11802 __pyx_t_2 = ((__pyx_v_cmesh->mesh.nNodes_element == 3) != 0);
11812 __pyx_t_3 = __Pyx_PyInt_As_int(__pyx_v_nLevels);
if (unlikely((__pyx_t_3 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 223, __pyx_L1_error)
11830 __pyx_t_4 = PyTuple_New(2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 227, __pyx_L1_error)
11831 __Pyx_GOTREF(__pyx_t_4);
11832 __Pyx_INCREF(__pyx_int_1);
11833 __Pyx_GIVEREF(__pyx_int_1);
11834 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_int_1);
11835 __Pyx_INCREF(__pyx_v_nLevels);
11836 __Pyx_GIVEREF(__pyx_v_nLevels);
11837 PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_nLevels);
11838 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_4, NULL);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 227, __pyx_L1_error)
11839 __Pyx_GOTREF(__pyx_t_5);
11840 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11841 if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) {
11842 __pyx_t_4 = __pyx_t_5; __Pyx_INCREF(__pyx_t_4); __pyx_t_6 = 0;
11845 __pyx_t_6 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_5);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 227, __pyx_L1_error)
11846 __Pyx_GOTREF(__pyx_t_4);
11847 __pyx_t_7 = Py_TYPE(__pyx_t_4)->tp_iternext;
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 227, __pyx_L1_error)
11849 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11851 if (likely(!__pyx_t_7)) {
11852 if (likely(PyList_CheckExact(__pyx_t_4))) {
11853 if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_4))
break;
11854 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
11855 __pyx_t_5 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++;
if (unlikely(0 < 0)) __PYX_ERR(1, 227, __pyx_L1_error)
11857 __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 227, __pyx_L1_error)
11858 __Pyx_GOTREF(__pyx_t_5);
11861 if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_4))
break;
11862 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
11863 __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++;
if (unlikely(0 < 0)) __PYX_ERR(1, 227, __pyx_L1_error)
11865 __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 227, __pyx_L1_error)
11866 __Pyx_GOTREF(__pyx_t_5);
11870 __pyx_t_5 = __pyx_t_7(__pyx_t_4);
11871 if (unlikely(!__pyx_t_5)) {
11872 PyObject* exc_type = PyErr_Occurred();
11874 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
11875 else __PYX_ERR(1, 227, __pyx_L1_error)
11879 __Pyx_GOTREF(__pyx_t_5);
11881 __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_5);
11891 __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 228, __pyx_L1_error)
11901 __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 229, __pyx_L1_error)
11911 __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 230, __pyx_L1_error)
11921 __pyx_t_5 = __Pyx_PyInt_SubtractObjC(__pyx_v_i, __pyx_int_1, 1, 0);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 231, __pyx_L1_error)
11922 __Pyx_GOTREF(__pyx_t_5);
11923 __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_t_5);
if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 231, __pyx_L1_error)
11924 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
11933 __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 232, __pyx_L1_error)
11942 __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 233, __pyx_L1_error)
11951 (void)(
assignElementBoundaryMaterialTypesFromParent((__pyx_v_self->multilevelMesh.meshArray[__pyx_t_10]), (__pyx_v_self->multilevelMesh.meshArray[__pyx_t_9]), (__pyx_v_self->multilevelMesh.elementParentsArray[__pyx_t_8]), 2));
11961 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11980 __pyx_t_11 = ((__pyx_v_cmesh->mesh.nNodes_element == 4) != 0);
11983 __pyx_t_2 = __pyx_t_11;
11984 goto __pyx_L8_bool_binop_done;
11986 __pyx_t_11 = ((__pyx_v_cmesh->mesh.nNodes_elementBoundary == 2) != 0);
11987 __pyx_t_2 = __pyx_t_11;
11988 __pyx_L8_bool_binop_done:;
11998 __pyx_t_3 = __Pyx_PyInt_As_int(__pyx_v_nLevels);
if (unlikely((__pyx_t_3 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 236, __pyx_L1_error)
12016 __pyx_t_4 = PyTuple_New(2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 240, __pyx_L1_error)
12017 __Pyx_GOTREF(__pyx_t_4);
12018 __Pyx_INCREF(__pyx_int_1);
12019 __Pyx_GIVEREF(__pyx_int_1);
12020 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_int_1);
12021 __Pyx_INCREF(__pyx_v_nLevels);
12022 __Pyx_GIVEREF(__pyx_v_nLevels);
12023 PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_nLevels);
12024 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_4, NULL);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 240, __pyx_L1_error)
12025 __Pyx_GOTREF(__pyx_t_5);
12026 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12027 if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) {
12028 __pyx_t_4 = __pyx_t_5; __Pyx_INCREF(__pyx_t_4); __pyx_t_6 = 0;
12031 __pyx_t_6 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_5);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 240, __pyx_L1_error)
12032 __Pyx_GOTREF(__pyx_t_4);
12033 __pyx_t_7 = Py_TYPE(__pyx_t_4)->tp_iternext;
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 240, __pyx_L1_error)
12035 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12037 if (likely(!__pyx_t_7)) {
12038 if (likely(PyList_CheckExact(__pyx_t_4))) {
12039 if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_4))
break;
12040 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
12041 __pyx_t_5 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++;
if (unlikely(0 < 0)) __PYX_ERR(1, 240, __pyx_L1_error)
12043 __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 240, __pyx_L1_error)
12044 __Pyx_GOTREF(__pyx_t_5);
12047 if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_4))
break;
12048 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
12049 __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++;
if (unlikely(0 < 0)) __PYX_ERR(1, 240, __pyx_L1_error)
12051 __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 240, __pyx_L1_error)
12052 __Pyx_GOTREF(__pyx_t_5);
12056 __pyx_t_5 = __pyx_t_7(__pyx_t_4);
12057 if (unlikely(!__pyx_t_5)) {
12058 PyObject* exc_type = PyErr_Occurred();
12060 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
12061 else __PYX_ERR(1, 240, __pyx_L1_error)
12065 __Pyx_GOTREF(__pyx_t_5);
12067 __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_5);
12077 __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 241, __pyx_L1_error)
12087 __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 242, __pyx_L1_error)
12097 __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 243, __pyx_L1_error)
12107 __pyx_t_5 = __Pyx_PyInt_SubtractObjC(__pyx_v_i, __pyx_int_1, 1, 0);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 244, __pyx_L1_error)
12108 __Pyx_GOTREF(__pyx_t_5);
12109 __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_t_5);
if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 244, __pyx_L1_error)
12110 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12119 __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 245, __pyx_L1_error)
12128 __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 246, __pyx_L1_error)
12137 (void)(
assignElementBoundaryMaterialTypesFromParent((__pyx_v_self->multilevelMesh.meshArray[__pyx_t_8]), (__pyx_v_self->multilevelMesh.meshArray[__pyx_t_9]), (__pyx_v_self->multilevelMesh.elementParentsArray[__pyx_t_10]), 2));
12147 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12166 __pyx_t_11 = ((__pyx_v_cmesh->mesh.nNodes_element == 4) != 0);
12169 __pyx_t_2 = __pyx_t_11;
12170 goto __pyx_L12_bool_binop_done;
12172 __pyx_t_11 = ((__pyx_v_cmesh->mesh.nNodes_elementBoundary == 3) != 0);
12173 __pyx_t_2 = __pyx_t_11;
12174 __pyx_L12_bool_binop_done:;
12184 __pyx_t_3 = __Pyx_PyInt_As_int(__pyx_v_nLevels);
if (unlikely((__pyx_t_3 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 249, __pyx_L1_error)
12202 __pyx_t_4 = PyTuple_New(2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 253, __pyx_L1_error)
12203 __Pyx_GOTREF(__pyx_t_4);
12204 __Pyx_INCREF(__pyx_int_1);
12205 __Pyx_GIVEREF(__pyx_int_1);
12206 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_int_1);
12207 __Pyx_INCREF(__pyx_v_nLevels);
12208 __Pyx_GIVEREF(__pyx_v_nLevels);
12209 PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_nLevels);
12210 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_4, NULL);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 253, __pyx_L1_error)
12211 __Pyx_GOTREF(__pyx_t_5);
12212 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12213 if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) {
12214 __pyx_t_4 = __pyx_t_5; __Pyx_INCREF(__pyx_t_4); __pyx_t_6 = 0;
12217 __pyx_t_6 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_5);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 253, __pyx_L1_error)
12218 __Pyx_GOTREF(__pyx_t_4);
12219 __pyx_t_7 = Py_TYPE(__pyx_t_4)->tp_iternext;
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 253, __pyx_L1_error)
12221 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12223 if (likely(!__pyx_t_7)) {
12224 if (likely(PyList_CheckExact(__pyx_t_4))) {
12225 if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_4))
break;
12226 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
12227 __pyx_t_5 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++;
if (unlikely(0 < 0)) __PYX_ERR(1, 253, __pyx_L1_error)
12229 __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 253, __pyx_L1_error)
12230 __Pyx_GOTREF(__pyx_t_5);
12233 if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_4))
break;
12234 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
12235 __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++;
if (unlikely(0 < 0)) __PYX_ERR(1, 253, __pyx_L1_error)
12237 __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 253, __pyx_L1_error)
12238 __Pyx_GOTREF(__pyx_t_5);
12242 __pyx_t_5 = __pyx_t_7(__pyx_t_4);
12243 if (unlikely(!__pyx_t_5)) {
12244 PyObject* exc_type = PyErr_Occurred();
12246 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
12247 else __PYX_ERR(1, 253, __pyx_L1_error)
12251 __Pyx_GOTREF(__pyx_t_5);
12253 __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_5);
12263 __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 254, __pyx_L1_error)
12273 __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 255, __pyx_L1_error)
12283 __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 256, __pyx_L1_error)
12293 __pyx_t_5 = __Pyx_PyInt_SubtractObjC(__pyx_v_i, __pyx_int_1, 1, 0);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 257, __pyx_L1_error)
12294 __Pyx_GOTREF(__pyx_t_5);
12295 __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_t_5);
if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 257, __pyx_L1_error)
12296 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12305 __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 258, __pyx_L1_error)
12314 __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 259, __pyx_L1_error)
12323 (void)(
assignElementBoundaryMaterialTypesFromParent((__pyx_v_self->multilevelMesh.meshArray[__pyx_t_10]), (__pyx_v_self->multilevelMesh.meshArray[__pyx_t_9]), (__pyx_v_self->multilevelMesh.elementParentsArray[__pyx_t_8]), 3));
12333 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12352 __pyx_t_11 = ((__pyx_v_cmesh->mesh.nNodes_element == 8) != 0);
12355 __pyx_t_2 = __pyx_t_11;
12356 goto __pyx_L16_bool_binop_done;
12358 __pyx_t_11 = ((__pyx_v_cmesh->mesh.nNodes_elementBoundary == 4) != 0);
12359 __pyx_t_2 = __pyx_t_11;
12360 __pyx_L16_bool_binop_done:;
12370 __pyx_t_3 = __Pyx_PyInt_As_int(__pyx_v_nLevels);
if (unlikely((__pyx_t_3 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 262, __pyx_L1_error)
12388 __pyx_t_4 = PyTuple_New(2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 266, __pyx_L1_error)
12389 __Pyx_GOTREF(__pyx_t_4);
12390 __Pyx_INCREF(__pyx_int_1);
12391 __Pyx_GIVEREF(__pyx_int_1);
12392 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_int_1);
12393 __Pyx_INCREF(__pyx_v_nLevels);
12394 __Pyx_GIVEREF(__pyx_v_nLevels);
12395 PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_nLevels);
12396 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_4, NULL);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 266, __pyx_L1_error)
12397 __Pyx_GOTREF(__pyx_t_5);
12398 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12399 if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) {
12400 __pyx_t_4 = __pyx_t_5; __Pyx_INCREF(__pyx_t_4); __pyx_t_6 = 0;
12403 __pyx_t_6 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_5);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 266, __pyx_L1_error)
12404 __Pyx_GOTREF(__pyx_t_4);
12405 __pyx_t_7 = Py_TYPE(__pyx_t_4)->tp_iternext;
if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 266, __pyx_L1_error)
12407 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12409 if (likely(!__pyx_t_7)) {
12410 if (likely(PyList_CheckExact(__pyx_t_4))) {
12411 if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_4))
break;
12412 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
12413 __pyx_t_5 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++;
if (unlikely(0 < 0)) __PYX_ERR(1, 266, __pyx_L1_error)
12415 __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 266, __pyx_L1_error)
12416 __Pyx_GOTREF(__pyx_t_5);
12419 if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_4))
break;
12420 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
12421 __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++;
if (unlikely(0 < 0)) __PYX_ERR(1, 266, __pyx_L1_error)
12423 __pyx_t_5 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 266, __pyx_L1_error)
12424 __Pyx_GOTREF(__pyx_t_5);
12428 __pyx_t_5 = __pyx_t_7(__pyx_t_4);
12429 if (unlikely(!__pyx_t_5)) {
12430 PyObject* exc_type = PyErr_Occurred();
12432 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
12433 else __PYX_ERR(1, 266, __pyx_L1_error)
12437 __Pyx_GOTREF(__pyx_t_5);
12439 __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_5);
12449 __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 268, __pyx_L1_error)
12467 __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 269, __pyx_L1_error)
12477 __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 270, __pyx_L1_error)
12487 __pyx_t_5 = __Pyx_PyInt_SubtractObjC(__pyx_v_i, __pyx_int_1, 1, 0);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 271, __pyx_L1_error)
12488 __Pyx_GOTREF(__pyx_t_5);
12489 __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_t_5);
if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 271, __pyx_L1_error)
12490 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
12499 __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 272, __pyx_L1_error)
12508 __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i);
if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 273, __pyx_L1_error)
12517 (void)(
assignElementBoundaryMaterialTypesFromParent((__pyx_v_self->multilevelMesh.meshArray[__pyx_t_8]), (__pyx_v_self->multilevelMesh.meshArray[__pyx_t_9]), (__pyx_v_self->multilevelMesh.elementParentsArray[__pyx_t_10]), 4));
12527 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12547 #ifndef CYTHON_WITHOUT_ASSERTIONS
12548 if (unlikely(!Py_OptimizeFlag)) {
12549 __pyx_t_4 = __Pyx_PyInt_EqObjC(__pyx_v_nLevels, __pyx_int_1, 1, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 276, __pyx_L1_error)
12550 __Pyx_GOTREF(__pyx_t_4);
12551 __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(1, 276, __pyx_L1_error)
12552 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12553 if (unlikely(!__pyx_t_2)) {
12554 PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_wrong_nLevels);
12555 __PYX_ERR(1, 276, __pyx_L1_error)
12567 __pyx_t_3 = __Pyx_PyInt_As_int(__pyx_v_nLevels);
if (unlikely((__pyx_t_3 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 277, __pyx_L1_error)
12592 __Pyx_XDECREF(__pyx_t_4);
12593 __Pyx_XDECREF(__pyx_t_5);
12594 __Pyx_AddTraceback(
"cmeshTools.CMultilevelMesh.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
12597 __Pyx_XDECREF(__pyx_v_i);
12598 __Pyx_RefNannyFinishContext();
12611 static PyObject *__pyx_pw_10cmeshTools_15CMultilevelMesh_3buildPythonMultilevelMeshInterface(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
12612 static PyObject *__pyx_pw_10cmeshTools_15CMultilevelMesh_3buildPythonMultilevelMeshInterface(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
12613 PyObject *__pyx_r = 0;
12614 __Pyx_RefNannyDeclarations
12615 __Pyx_RefNannySetupContext(
"buildPythonMultilevelMeshInterface (wrapper)", 0);
12616 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh_2buildPythonMultilevelMeshInterface(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self));
12619 __Pyx_RefNannyFinishContext();
12623 static PyObject *__pyx_pf_10cmeshTools_15CMultilevelMesh_2buildPythonMultilevelMeshInterface(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self) {
12624 CYTHON_UNUSED
int __pyx_v_dim;
12625 PyObject *__pyx_v_n = NULL;
12626 PyObject *__pyx_r = NULL;
12627 __Pyx_RefNannyDeclarations
12628 PyObject *__pyx_t_1 = NULL;
12629 PyObject *__pyx_t_2 = NULL;
12630 PyObject *__pyx_t_3 = NULL;
12631 Py_ssize_t __pyx_t_4;
12632 PyObject *(*__pyx_t_5)(PyObject *);
12633 Py_ssize_t __pyx_t_6;
12635 PyObject *__pyx_t_8 = NULL;
12637 struct __pyx_array_obj *__pyx_t_10 = NULL;
12638 PyObject *__pyx_t_11 = NULL;
12639 Py_ssize_t __pyx_t_12;
12640 __Pyx_RefNannySetupContext(
"buildPythonMultilevelMeshInterface", 0);
12649 __pyx_t_1 = ((PyObject *)__pyx_f_10cmeshTools_CMesh_FromMesh((__pyx_v_self->multilevelMesh.meshArray[0])));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 284, __pyx_L1_error)
12650 __Pyx_GOTREF(__pyx_t_1);
12651 __pyx_t_2 = PyList_New(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 284, __pyx_L1_error)
12652 __Pyx_GOTREF(__pyx_t_2);
12653 __Pyx_GIVEREF(__pyx_t_1);
12654 PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
12656 __Pyx_GIVEREF(__pyx_t_2);
12657 __Pyx_GOTREF(__pyx_v_self->cmeshList);
12658 __Pyx_DECREF(__pyx_v_self->cmeshList);
12659 __pyx_v_self->cmeshList = ((PyObject*)__pyx_t_2);
12669 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 285, __pyx_L1_error)
12670 __Pyx_GOTREF(__pyx_t_1);
12671 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_zeros);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 285, __pyx_L1_error)
12672 __Pyx_GOTREF(__pyx_t_3);
12673 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12675 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
12676 __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3);
12677 if (likely(__pyx_t_1)) {
12678 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
12679 __Pyx_INCREF(__pyx_t_1);
12680 __Pyx_INCREF(
function);
12681 __Pyx_DECREF_SET(__pyx_t_3,
function);
12684 __pyx_t_2 = (__pyx_t_1) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_1, __pyx_int_0) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_int_0);
12685 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
12686 if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 285, __pyx_L1_error)
12687 __Pyx_GOTREF(__pyx_t_2);
12688 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12689 __pyx_t_3 = PyList_New(1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 285, __pyx_L1_error)
12690 __Pyx_GOTREF(__pyx_t_3);
12691 __Pyx_GIVEREF(__pyx_t_2);
12692 PyList_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
12694 __Pyx_GIVEREF(__pyx_t_3);
12695 __Pyx_GOTREF(__pyx_v_self->elementParentsArrayList);
12696 __Pyx_DECREF(__pyx_v_self->elementParentsArrayList);
12697 __pyx_v_self->elementParentsArrayList = ((PyObject*)__pyx_t_3);
12707 __pyx_t_3 = PyList_New(0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 286, __pyx_L1_error)
12708 __Pyx_GOTREF(__pyx_t_3);
12709 __Pyx_GIVEREF(__pyx_t_3);
12710 __Pyx_GOTREF(__pyx_v_self->elementChildrenArrayList);
12711 __Pyx_DECREF(__pyx_v_self->elementChildrenArrayList);
12712 __pyx_v_self->elementChildrenArrayList = ((PyObject*)__pyx_t_3);
12722 __pyx_t_3 = PyList_New(0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 287, __pyx_L1_error)
12723 __Pyx_GOTREF(__pyx_t_3);
12724 __Pyx_GIVEREF(__pyx_t_3);
12725 __Pyx_GOTREF(__pyx_v_self->elementChildrenOffsetsList);
12726 __Pyx_DECREF(__pyx_v_self->elementChildrenOffsetsList);
12727 __pyx_v_self->elementChildrenOffsetsList = ((PyObject*)__pyx_t_3);
12737 __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_self->multilevelMesh.nLevels);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 288, __pyx_L1_error)
12738 __Pyx_GOTREF(__pyx_t_3);
12739 __pyx_t_2 = PyTuple_New(2);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 288, __pyx_L1_error)
12740 __Pyx_GOTREF(__pyx_t_2);
12741 __Pyx_INCREF(__pyx_int_1);
12742 __Pyx_GIVEREF(__pyx_int_1);
12743 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_int_1);
12744 __Pyx_GIVEREF(__pyx_t_3);
12745 PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3);
12747 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_t_2, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 288, __pyx_L1_error)
12748 __Pyx_GOTREF(__pyx_t_3);
12749 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12750 if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
12751 __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0;
12754 __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 288, __pyx_L1_error)
12755 __Pyx_GOTREF(__pyx_t_2);
12756 __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext;
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 288, __pyx_L1_error)
12758 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12760 if (likely(!__pyx_t_5)) {
12761 if (likely(PyList_CheckExact(__pyx_t_2))) {
12762 if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2))
break;
12763 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
12764 __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++;
if (unlikely(0 < 0)) __PYX_ERR(1, 288, __pyx_L1_error)
12766 __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++;
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 288, __pyx_L1_error)
12767 __Pyx_GOTREF(__pyx_t_3);
12770 if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2))
break;
12771 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
12772 __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++;
if (unlikely(0 < 0)) __PYX_ERR(1, 288, __pyx_L1_error)
12774 __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++;
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 288, __pyx_L1_error)
12775 __Pyx_GOTREF(__pyx_t_3);
12779 __pyx_t_3 = __pyx_t_5(__pyx_t_2);
12780 if (unlikely(!__pyx_t_3)) {
12781 PyObject* exc_type = PyErr_Occurred();
12783 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
12784 else __PYX_ERR(1, 288, __pyx_L1_error)
12788 __Pyx_GOTREF(__pyx_t_3);
12790 __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_3);
12800 __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n);
if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 289, __pyx_L1_error)
12801 __pyx_t_3 = ((PyObject *)__pyx_f_10cmeshTools_CMesh_FromMesh((__pyx_v_self->multilevelMesh.meshArray[__pyx_t_6])));
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 289, __pyx_L1_error)
12802 __Pyx_GOTREF(__pyx_t_3);
12803 __pyx_t_1 = PyList_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 289, __pyx_L1_error)
12804 __Pyx_GOTREF(__pyx_t_1);
12805 __Pyx_GIVEREF(__pyx_t_3);
12806 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
12808 __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_self->cmeshList, __pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 289, __pyx_L1_error)
12809 __Pyx_GOTREF(__pyx_t_3);
12810 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12811 __Pyx_GIVEREF(__pyx_t_3);
12812 __Pyx_GOTREF(__pyx_v_self->cmeshList);
12813 __Pyx_DECREF(__pyx_v_self->cmeshList);
12814 __pyx_v_self->cmeshList = ((PyObject*)__pyx_t_3);
12824 __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n);
if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 290, __pyx_L1_error)
12825 __pyx_t_7 = (__pyx_v_self->multilevelMesh.meshArray[__pyx_t_6]).nElements_global;
12826 __pyx_v_dim = __pyx_t_7;
12835 __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 291, __pyx_L1_error)
12836 __Pyx_GOTREF(__pyx_t_1);
12837 __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 291, __pyx_L1_error)
12838 __Pyx_GOTREF(__pyx_t_8);
12839 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12840 __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n);
if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 291, __pyx_L1_error)
12841 __pyx_t_9 = (__pyx_v_self->multilevelMesh.elementParentsArray[__pyx_t_6]);
12843 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
12844 __PYX_ERR(1, 291, __pyx_L1_error)
12846 __pyx_t_11 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
12847 __pyx_t_1 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_dim));
12848 if (unlikely(!__pyx_t_11 || !__pyx_t_1 || !PyBytes_AsString(__pyx_t_11))) __PYX_ERR(1, 291, __pyx_L1_error)
12849 __Pyx_GOTREF(__pyx_t_11);
12850 __Pyx_GOTREF(__pyx_t_1);
12851 __pyx_t_10 = __pyx_array_new(__pyx_t_1,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_11), (
char *)
"c", (
char *) __pyx_t_9);
12852 if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 291, __pyx_L1_error)
12853 __Pyx_GOTREF(__pyx_t_10);
12854 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12855 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
12857 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_8))) {
12858 __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_8);
12859 if (likely(__pyx_t_11)) {
12860 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_8);
12861 __Pyx_INCREF(__pyx_t_11);
12862 __Pyx_INCREF(
function);
12863 __Pyx_DECREF_SET(__pyx_t_8,
function);
12866 __pyx_t_3 = (__pyx_t_11) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_11, ((PyObject *)__pyx_t_10)) : __Pyx_PyObject_CallOneArg(__pyx_t_8, ((PyObject *)__pyx_t_10));
12867 __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
12868 __Pyx_DECREF(((PyObject *)__pyx_t_10)); __pyx_t_10 = 0;
12869 if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 291, __pyx_L1_error)
12870 __Pyx_GOTREF(__pyx_t_3);
12871 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12872 __pyx_t_8 = PyList_New(1);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 291, __pyx_L1_error)
12873 __Pyx_GOTREF(__pyx_t_8);
12874 __Pyx_GIVEREF(__pyx_t_3);
12875 PyList_SET_ITEM(__pyx_t_8, 0, __pyx_t_3);
12877 __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_self->elementParentsArrayList, __pyx_t_8);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 291, __pyx_L1_error)
12878 __Pyx_GOTREF(__pyx_t_3);
12879 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12880 __Pyx_GIVEREF(__pyx_t_3);
12881 __Pyx_GOTREF(__pyx_v_self->elementParentsArrayList);
12882 __Pyx_DECREF(__pyx_v_self->elementParentsArrayList);
12883 __pyx_v_self->elementParentsArrayList = ((PyObject*)__pyx_t_3);
12893 __pyx_t_3 = __Pyx_PyInt_SubtractObjC(__pyx_v_n, __pyx_int_1, 1, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 292, __pyx_L1_error)
12894 __Pyx_GOTREF(__pyx_t_3);
12895 __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3);
if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 292, __pyx_L1_error)
12896 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12897 __pyx_t_3 = __Pyx_PyInt_SubtractObjC(__pyx_v_n, __pyx_int_1, 1, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 292, __pyx_L1_error)
12898 __Pyx_GOTREF(__pyx_t_3);
12899 __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3);
if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 292, __pyx_L1_error)
12900 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12901 __pyx_v_dim = ((__pyx_v_self->multilevelMesh.elementChildrenOffsets[__pyx_t_6])[(__pyx_v_self->multilevelMesh.meshArray[__pyx_t_12]).nElements_global]);
12910 __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_np);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 293, __pyx_L1_error)
12911 __Pyx_GOTREF(__pyx_t_8);
12912 __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_t_8, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 293, __pyx_L1_error)
12913 __Pyx_GOTREF(__pyx_t_11);
12914 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12915 __pyx_t_8 = __Pyx_PyInt_SubtractObjC(__pyx_v_n, __pyx_int_1, 1, 0);
if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 293, __pyx_L1_error)
12916 __Pyx_GOTREF(__pyx_t_8);
12917 __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_8);
if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 293, __pyx_L1_error)
12918 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12919 __pyx_t_9 = (__pyx_v_self->multilevelMesh.elementChildrenArray[__pyx_t_12]);
12921 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
12922 __PYX_ERR(1, 293, __pyx_L1_error)
12924 __pyx_t_1 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
12925 __pyx_t_8 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_dim));
12926 if (unlikely(!__pyx_t_1 || !__pyx_t_8 || !PyBytes_AsString(__pyx_t_1))) __PYX_ERR(1, 293, __pyx_L1_error)
12927 __Pyx_GOTREF(__pyx_t_1);
12928 __Pyx_GOTREF(__pyx_t_8);
12929 __pyx_t_10 = __pyx_array_new(__pyx_t_8,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_1), (
char *)
"c", (
char *) __pyx_t_9);
12930 if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 293, __pyx_L1_error)
12931 __Pyx_GOTREF(__pyx_t_10);
12932 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
12933 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
12935 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_11))) {
12936 __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_11);
12937 if (likely(__pyx_t_1)) {
12938 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_11);
12939 __Pyx_INCREF(__pyx_t_1);
12940 __Pyx_INCREF(
function);
12941 __Pyx_DECREF_SET(__pyx_t_11,
function);
12944 __pyx_t_3 = (__pyx_t_1) ? __Pyx_PyObject_Call2Args(__pyx_t_11, __pyx_t_1, ((PyObject *)__pyx_t_10)) : __Pyx_PyObject_CallOneArg(__pyx_t_11, ((PyObject *)__pyx_t_10));
12945 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
12946 __Pyx_DECREF(((PyObject *)__pyx_t_10)); __pyx_t_10 = 0;
12947 if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 293, __pyx_L1_error)
12948 __Pyx_GOTREF(__pyx_t_3);
12949 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
12950 __pyx_t_11 = PyList_New(1);
if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 293, __pyx_L1_error)
12951 __Pyx_GOTREF(__pyx_t_11);
12952 __Pyx_GIVEREF(__pyx_t_3);
12953 PyList_SET_ITEM(__pyx_t_11, 0, __pyx_t_3);
12955 __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_self->elementChildrenArrayList, __pyx_t_11);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 293, __pyx_L1_error)
12956 __Pyx_GOTREF(__pyx_t_3);
12957 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
12958 __Pyx_GIVEREF(__pyx_t_3);
12959 __Pyx_GOTREF(__pyx_v_self->elementChildrenArrayList);
12960 __Pyx_DECREF(__pyx_v_self->elementChildrenArrayList);
12961 __pyx_v_self->elementChildrenArrayList = ((PyObject*)__pyx_t_3);
12971 __pyx_t_3 = __Pyx_PyInt_SubtractObjC(__pyx_v_n, __pyx_int_1, 1, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 294, __pyx_L1_error)
12972 __Pyx_GOTREF(__pyx_t_3);
12973 __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3);
if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 294, __pyx_L1_error)
12974 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
12975 __pyx_v_dim = ((__pyx_v_self->multilevelMesh.meshArray[__pyx_t_12]).nElements_global + 1);
12984 __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_n_s_np);
if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 295, __pyx_L1_error)
12985 __Pyx_GOTREF(__pyx_t_11);
12986 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_11, __pyx_n_s_asarray);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 295, __pyx_L1_error)
12987 __Pyx_GOTREF(__pyx_t_1);
12988 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
12989 __pyx_t_11 = __Pyx_PyInt_SubtractObjC(__pyx_v_n, __pyx_int_1, 1, 0);
if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 295, __pyx_L1_error)
12990 __Pyx_GOTREF(__pyx_t_11);
12991 __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_11);
if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(1, 295, __pyx_L1_error)
12992 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
12993 __pyx_t_9 = (__pyx_v_self->multilevelMesh.elementChildrenOffsets[__pyx_t_12]);
12995 PyErr_SetString(PyExc_ValueError,
"Cannot create cython.array from NULL pointer");
12996 __PYX_ERR(1, 295, __pyx_L1_error)
12998 __pyx_t_8 = __pyx_format_from_typeinfo(&__Pyx_TypeInfo_int);
12999 __pyx_t_11 = Py_BuildValue((
char*)
"(" __PYX_BUILD_PY_SSIZE_T
")", ((Py_ssize_t)__pyx_v_dim));
13000 if (unlikely(!__pyx_t_8 || !__pyx_t_11 || !PyBytes_AsString(__pyx_t_8))) __PYX_ERR(1, 295, __pyx_L1_error)
13001 __Pyx_GOTREF(__pyx_t_8);
13002 __Pyx_GOTREF(__pyx_t_11);
13003 __pyx_t_10 = __pyx_array_new(__pyx_t_11,
sizeof(
int), PyBytes_AS_STRING(__pyx_t_8), (
char *)
"c", (
char *) __pyx_t_9);
13004 if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 295, __pyx_L1_error)
13005 __Pyx_GOTREF(__pyx_t_10);
13006 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
13007 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
13009 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
13010 __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_1);
13011 if (likely(__pyx_t_8)) {
13012 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_1);
13013 __Pyx_INCREF(__pyx_t_8);
13014 __Pyx_INCREF(
function);
13015 __Pyx_DECREF_SET(__pyx_t_1,
function);
13018 __pyx_t_3 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_8, ((PyObject *)__pyx_t_10)) : __Pyx_PyObject_CallOneArg(__pyx_t_1, ((PyObject *)__pyx_t_10));
13019 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
13020 __Pyx_DECREF(((PyObject *)__pyx_t_10)); __pyx_t_10 = 0;
13021 if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 295, __pyx_L1_error)
13022 __Pyx_GOTREF(__pyx_t_3);
13023 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13024 __pyx_t_1 = PyList_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 295, __pyx_L1_error)
13025 __Pyx_GOTREF(__pyx_t_1);
13026 __Pyx_GIVEREF(__pyx_t_3);
13027 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
13029 __pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_self->elementChildrenOffsetsList, __pyx_t_1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 295, __pyx_L1_error)
13030 __Pyx_GOTREF(__pyx_t_3);
13031 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13032 __Pyx_GIVEREF(__pyx_t_3);
13033 __Pyx_GOTREF(__pyx_v_self->elementChildrenOffsetsList);
13034 __Pyx_DECREF(__pyx_v_self->elementChildrenOffsetsList);
13035 __pyx_v_self->elementChildrenOffsetsList = ((PyObject*)__pyx_t_3);
13046 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13057 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
13060 __Pyx_XDECREF(__pyx_t_1);
13061 __Pyx_XDECREF(__pyx_t_2);
13062 __Pyx_XDECREF(__pyx_t_3);
13063 __Pyx_XDECREF(__pyx_t_8);
13064 __Pyx_XDECREF(((PyObject *)__pyx_t_10));
13065 __Pyx_XDECREF(__pyx_t_11);
13066 __Pyx_AddTraceback(
"cmeshTools.CMultilevelMesh.buildPythonMultilevelMeshInterface", __pyx_clineno, __pyx_lineno, __pyx_filename);
13069 __Pyx_XDECREF(__pyx_v_n);
13070 __Pyx_XGIVEREF(__pyx_r);
13071 __Pyx_RefNannyFinishContext();
13084 static PyObject *__pyx_pw_10cmeshTools_15CMultilevelMesh_7nLevels_1__get__(PyObject *__pyx_v_self);
13085 static PyObject *__pyx_pw_10cmeshTools_15CMultilevelMesh_7nLevels_1__get__(PyObject *__pyx_v_self) {
13086 PyObject *__pyx_r = 0;
13087 __Pyx_RefNannyDeclarations
13088 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
13089 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh_7nLevels___get__(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self));
13092 __Pyx_RefNannyFinishContext();
13096 static PyObject *__pyx_pf_10cmeshTools_15CMultilevelMesh_7nLevels___get__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self) {
13097 PyObject *__pyx_r = NULL;
13098 __Pyx_RefNannyDeclarations
13099 PyObject *__pyx_t_1 = NULL;
13100 __Pyx_RefNannySetupContext(
"__get__", 0);
13101 __Pyx_XDECREF(__pyx_r);
13102 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->nLevels);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 202, __pyx_L1_error)
13103 __Pyx_GOTREF(__pyx_t_1);
13104 __pyx_r = __pyx_t_1;
13110 __Pyx_XDECREF(__pyx_t_1);
13111 __Pyx_AddTraceback(
"cmeshTools.CMultilevelMesh.nLevels.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
13114 __Pyx_XGIVEREF(__pyx_r);
13115 __Pyx_RefNannyFinishContext();
13120 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_7nLevels_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
13121 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_7nLevels_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
13123 __Pyx_RefNannyDeclarations
13124 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
13125 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh_7nLevels_2__set__(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
13128 __Pyx_RefNannyFinishContext();
13132 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_7nLevels_2__set__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self, PyObject *__pyx_v_value) {
13134 __Pyx_RefNannyDeclarations
13136 __Pyx_RefNannySetupContext(
"__set__", 0);
13137 __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value);
if (unlikely((__pyx_t_1 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 202, __pyx_L1_error)
13138 __pyx_v_self->nLevels = __pyx_t_1;
13144 __Pyx_AddTraceback(
"cmeshTools.CMultilevelMesh.nLevels.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
13147 __Pyx_RefNannyFinishContext();
13160 static PyObject *__pyx_pw_10cmeshTools_15CMultilevelMesh_9cmeshList_1__get__(PyObject *__pyx_v_self);
13161 static PyObject *__pyx_pw_10cmeshTools_15CMultilevelMesh_9cmeshList_1__get__(PyObject *__pyx_v_self) {
13162 PyObject *__pyx_r = 0;
13163 __Pyx_RefNannyDeclarations
13164 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
13165 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh_9cmeshList___get__(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self));
13168 __Pyx_RefNannyFinishContext();
13172 static PyObject *__pyx_pf_10cmeshTools_15CMultilevelMesh_9cmeshList___get__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self) {
13173 PyObject *__pyx_r = NULL;
13174 __Pyx_RefNannyDeclarations
13175 __Pyx_RefNannySetupContext(
"__get__", 0);
13176 __Pyx_XDECREF(__pyx_r);
13177 __Pyx_INCREF(__pyx_v_self->cmeshList);
13178 __pyx_r = __pyx_v_self->cmeshList;
13183 __Pyx_XGIVEREF(__pyx_r);
13184 __Pyx_RefNannyFinishContext();
13189 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_9cmeshList_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
13190 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_9cmeshList_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
13192 __Pyx_RefNannyDeclarations
13193 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
13194 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh_9cmeshList_2__set__(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
13197 __Pyx_RefNannyFinishContext();
13201 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_9cmeshList_2__set__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self, PyObject *__pyx_v_value) {
13203 __Pyx_RefNannyDeclarations
13204 PyObject *__pyx_t_1 = NULL;
13205 __Pyx_RefNannySetupContext(
"__set__", 0);
13206 if (!(likely(PyList_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"list", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(1, 203, __pyx_L1_error)
13207 __pyx_t_1 = __pyx_v_value;
13208 __Pyx_INCREF(__pyx_t_1);
13209 __Pyx_GIVEREF(__pyx_t_1);
13210 __Pyx_GOTREF(__pyx_v_self->cmeshList);
13211 __Pyx_DECREF(__pyx_v_self->cmeshList);
13212 __pyx_v_self->cmeshList = ((PyObject*)__pyx_t_1);
13219 __Pyx_XDECREF(__pyx_t_1);
13220 __Pyx_AddTraceback(
"cmeshTools.CMultilevelMesh.cmeshList.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
13223 __Pyx_RefNannyFinishContext();
13228 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_9cmeshList_5__del__(PyObject *__pyx_v_self);
13229 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_9cmeshList_5__del__(PyObject *__pyx_v_self) {
13231 __Pyx_RefNannyDeclarations
13232 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
13233 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh_9cmeshList_4__del__(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self));
13236 __Pyx_RefNannyFinishContext();
13240 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_9cmeshList_4__del__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self) {
13242 __Pyx_RefNannyDeclarations
13243 __Pyx_RefNannySetupContext(
"__del__", 0);
13244 __Pyx_INCREF(Py_None);
13245 __Pyx_GIVEREF(Py_None);
13246 __Pyx_GOTREF(__pyx_v_self->cmeshList);
13247 __Pyx_DECREF(__pyx_v_self->cmeshList);
13248 __pyx_v_self->cmeshList = ((PyObject*)Py_None);
13252 __Pyx_RefNannyFinishContext();
13265 static PyObject *__pyx_pw_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList_1__get__(PyObject *__pyx_v_self);
13266 static PyObject *__pyx_pw_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList_1__get__(PyObject *__pyx_v_self) {
13267 PyObject *__pyx_r = 0;
13268 __Pyx_RefNannyDeclarations
13269 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
13270 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList___get__(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self));
13273 __Pyx_RefNannyFinishContext();
13277 static PyObject *__pyx_pf_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList___get__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self) {
13278 PyObject *__pyx_r = NULL;
13279 __Pyx_RefNannyDeclarations
13280 __Pyx_RefNannySetupContext(
"__get__", 0);
13281 __Pyx_XDECREF(__pyx_r);
13282 __Pyx_INCREF(__pyx_v_self->elementParentsArrayList);
13283 __pyx_r = __pyx_v_self->elementParentsArrayList;
13288 __Pyx_XGIVEREF(__pyx_r);
13289 __Pyx_RefNannyFinishContext();
13294 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
13295 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
13297 __Pyx_RefNannyDeclarations
13298 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
13299 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList_2__set__(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
13302 __Pyx_RefNannyFinishContext();
13306 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList_2__set__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self, PyObject *__pyx_v_value) {
13308 __Pyx_RefNannyDeclarations
13309 PyObject *__pyx_t_1 = NULL;
13310 __Pyx_RefNannySetupContext(
"__set__", 0);
13311 if (!(likely(PyList_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"list", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(1, 204, __pyx_L1_error)
13312 __pyx_t_1 = __pyx_v_value;
13313 __Pyx_INCREF(__pyx_t_1);
13314 __Pyx_GIVEREF(__pyx_t_1);
13315 __Pyx_GOTREF(__pyx_v_self->elementParentsArrayList);
13316 __Pyx_DECREF(__pyx_v_self->elementParentsArrayList);
13317 __pyx_v_self->elementParentsArrayList = ((PyObject*)__pyx_t_1);
13324 __Pyx_XDECREF(__pyx_t_1);
13325 __Pyx_AddTraceback(
"cmeshTools.CMultilevelMesh.elementParentsArrayList.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
13328 __Pyx_RefNannyFinishContext();
13333 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList_5__del__(PyObject *__pyx_v_self);
13334 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList_5__del__(PyObject *__pyx_v_self) {
13336 __Pyx_RefNannyDeclarations
13337 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
13338 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList_4__del__(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self));
13341 __Pyx_RefNannyFinishContext();
13345 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList_4__del__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self) {
13347 __Pyx_RefNannyDeclarations
13348 __Pyx_RefNannySetupContext(
"__del__", 0);
13349 __Pyx_INCREF(Py_None);
13350 __Pyx_GIVEREF(Py_None);
13351 __Pyx_GOTREF(__pyx_v_self->elementParentsArrayList);
13352 __Pyx_DECREF(__pyx_v_self->elementParentsArrayList);
13353 __pyx_v_self->elementParentsArrayList = ((PyObject*)Py_None);
13357 __Pyx_RefNannyFinishContext();
13370 static PyObject *__pyx_pw_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList_1__get__(PyObject *__pyx_v_self);
13371 static PyObject *__pyx_pw_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList_1__get__(PyObject *__pyx_v_self) {
13372 PyObject *__pyx_r = 0;
13373 __Pyx_RefNannyDeclarations
13374 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
13375 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList___get__(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self));
13378 __Pyx_RefNannyFinishContext();
13382 static PyObject *__pyx_pf_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList___get__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self) {
13383 PyObject *__pyx_r = NULL;
13384 __Pyx_RefNannyDeclarations
13385 __Pyx_RefNannySetupContext(
"__get__", 0);
13386 __Pyx_XDECREF(__pyx_r);
13387 __Pyx_INCREF(__pyx_v_self->elementChildrenArrayList);
13388 __pyx_r = __pyx_v_self->elementChildrenArrayList;
13393 __Pyx_XGIVEREF(__pyx_r);
13394 __Pyx_RefNannyFinishContext();
13399 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
13400 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
13402 __Pyx_RefNannyDeclarations
13403 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
13404 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList_2__set__(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
13407 __Pyx_RefNannyFinishContext();
13411 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList_2__set__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self, PyObject *__pyx_v_value) {
13413 __Pyx_RefNannyDeclarations
13414 PyObject *__pyx_t_1 = NULL;
13415 __Pyx_RefNannySetupContext(
"__set__", 0);
13416 if (!(likely(PyList_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"list", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(1, 205, __pyx_L1_error)
13417 __pyx_t_1 = __pyx_v_value;
13418 __Pyx_INCREF(__pyx_t_1);
13419 __Pyx_GIVEREF(__pyx_t_1);
13420 __Pyx_GOTREF(__pyx_v_self->elementChildrenArrayList);
13421 __Pyx_DECREF(__pyx_v_self->elementChildrenArrayList);
13422 __pyx_v_self->elementChildrenArrayList = ((PyObject*)__pyx_t_1);
13429 __Pyx_XDECREF(__pyx_t_1);
13430 __Pyx_AddTraceback(
"cmeshTools.CMultilevelMesh.elementChildrenArrayList.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
13433 __Pyx_RefNannyFinishContext();
13438 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList_5__del__(PyObject *__pyx_v_self);
13439 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList_5__del__(PyObject *__pyx_v_self) {
13441 __Pyx_RefNannyDeclarations
13442 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
13443 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList_4__del__(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self));
13446 __Pyx_RefNannyFinishContext();
13450 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList_4__del__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self) {
13452 __Pyx_RefNannyDeclarations
13453 __Pyx_RefNannySetupContext(
"__del__", 0);
13454 __Pyx_INCREF(Py_None);
13455 __Pyx_GIVEREF(Py_None);
13456 __Pyx_GOTREF(__pyx_v_self->elementChildrenArrayList);
13457 __Pyx_DECREF(__pyx_v_self->elementChildrenArrayList);
13458 __pyx_v_self->elementChildrenArrayList = ((PyObject*)Py_None);
13462 __Pyx_RefNannyFinishContext();
13475 static PyObject *__pyx_pw_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList_1__get__(PyObject *__pyx_v_self);
13476 static PyObject *__pyx_pw_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList_1__get__(PyObject *__pyx_v_self) {
13477 PyObject *__pyx_r = 0;
13478 __Pyx_RefNannyDeclarations
13479 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
13480 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList___get__(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self));
13483 __Pyx_RefNannyFinishContext();
13487 static PyObject *__pyx_pf_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList___get__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self) {
13488 PyObject *__pyx_r = NULL;
13489 __Pyx_RefNannyDeclarations
13490 __Pyx_RefNannySetupContext(
"__get__", 0);
13491 __Pyx_XDECREF(__pyx_r);
13492 __Pyx_INCREF(__pyx_v_self->elementChildrenOffsetsList);
13493 __pyx_r = __pyx_v_self->elementChildrenOffsetsList;
13498 __Pyx_XGIVEREF(__pyx_r);
13499 __Pyx_RefNannyFinishContext();
13504 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value);
13505 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
13507 __Pyx_RefNannyDeclarations
13508 __Pyx_RefNannySetupContext(
"__set__ (wrapper)", 0);
13509 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList_2__set__(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self), ((PyObject *)__pyx_v_value));
13512 __Pyx_RefNannyFinishContext();
13516 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList_2__set__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self, PyObject *__pyx_v_value) {
13518 __Pyx_RefNannyDeclarations
13519 PyObject *__pyx_t_1 = NULL;
13520 __Pyx_RefNannySetupContext(
"__set__", 0);
13521 if (!(likely(PyList_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"list", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(1, 206, __pyx_L1_error)
13522 __pyx_t_1 = __pyx_v_value;
13523 __Pyx_INCREF(__pyx_t_1);
13524 __Pyx_GIVEREF(__pyx_t_1);
13525 __Pyx_GOTREF(__pyx_v_self->elementChildrenOffsetsList);
13526 __Pyx_DECREF(__pyx_v_self->elementChildrenOffsetsList);
13527 __pyx_v_self->elementChildrenOffsetsList = ((PyObject*)__pyx_t_1);
13534 __Pyx_XDECREF(__pyx_t_1);
13535 __Pyx_AddTraceback(
"cmeshTools.CMultilevelMesh.elementChildrenOffsetsList.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
13538 __Pyx_RefNannyFinishContext();
13543 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList_5__del__(PyObject *__pyx_v_self);
13544 static int __pyx_pw_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList_5__del__(PyObject *__pyx_v_self) {
13546 __Pyx_RefNannyDeclarations
13547 __Pyx_RefNannySetupContext(
"__del__ (wrapper)", 0);
13548 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList_4__del__(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self));
13551 __Pyx_RefNannyFinishContext();
13555 static int __pyx_pf_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList_4__del__(
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self) {
13557 __Pyx_RefNannyDeclarations
13558 __Pyx_RefNannySetupContext(
"__del__", 0);
13559 __Pyx_INCREF(Py_None);
13560 __Pyx_GIVEREF(Py_None);
13561 __Pyx_GOTREF(__pyx_v_self->elementChildrenOffsetsList);
13562 __Pyx_DECREF(__pyx_v_self->elementChildrenOffsetsList);
13563 __pyx_v_self->elementChildrenOffsetsList = ((PyObject*)Py_None);
13567 __Pyx_RefNannyFinishContext();
13578 static PyObject *__pyx_pw_10cmeshTools_15CMultilevelMesh_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
13579 static PyObject *__pyx_pw_10cmeshTools_15CMultilevelMesh_5__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
13580 PyObject *__pyx_r = 0;
13581 __Pyx_RefNannyDeclarations
13582 __Pyx_RefNannySetupContext(
"__reduce_cython__ (wrapper)", 0);
13583 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh_4__reduce_cython__(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self));
13586 __Pyx_RefNannyFinishContext();
13590 static PyObject *__pyx_pf_10cmeshTools_15CMultilevelMesh_4__reduce_cython__(CYTHON_UNUSED
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self) {
13591 PyObject *__pyx_r = NULL;
13592 __Pyx_RefNannyDeclarations
13593 PyObject *__pyx_t_1 = NULL;
13594 __Pyx_RefNannySetupContext(
"__reduce_cython__", 0);
13602 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__4, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error)
13603 __Pyx_GOTREF(__pyx_t_1);
13604 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
13605 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13606 __PYX_ERR(0, 2, __pyx_L1_error)
13616 __Pyx_XDECREF(__pyx_t_1);
13617 __Pyx_AddTraceback(
"cmeshTools.CMultilevelMesh.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
13619 __Pyx_XGIVEREF(__pyx_r);
13620 __Pyx_RefNannyFinishContext();
13632 static PyObject *__pyx_pw_10cmeshTools_15CMultilevelMesh_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state);
13633 static PyObject *__pyx_pw_10cmeshTools_15CMultilevelMesh_7__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
13634 PyObject *__pyx_r = 0;
13635 __Pyx_RefNannyDeclarations
13636 __Pyx_RefNannySetupContext(
"__setstate_cython__ (wrapper)", 0);
13637 __pyx_r = __pyx_pf_10cmeshTools_15CMultilevelMesh_6__setstate_cython__(((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
13640 __Pyx_RefNannyFinishContext();
13644 static PyObject *__pyx_pf_10cmeshTools_15CMultilevelMesh_6__setstate_cython__(CYTHON_UNUSED
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
13645 PyObject *__pyx_r = NULL;
13646 __Pyx_RefNannyDeclarations
13647 PyObject *__pyx_t_1 = NULL;
13648 __Pyx_RefNannySetupContext(
"__setstate_cython__", 0);
13655 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__5, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4, __pyx_L1_error)
13656 __Pyx_GOTREF(__pyx_t_1);
13657 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
13658 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13659 __PYX_ERR(0, 4, __pyx_L1_error)
13670 __Pyx_XDECREF(__pyx_t_1);
13671 __Pyx_AddTraceback(
"cmeshTools.CMultilevelMesh.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
13673 __Pyx_XGIVEREF(__pyx_r);
13674 __Pyx_RefNannyFinishContext();
13687 static PyObject *__pyx_pw_10cmeshTools_5buildPythonMultilevelMeshInterface(PyObject *__pyx_self, PyObject *__pyx_v_cmultilevelMesh);
13688 static PyMethodDef __pyx_mdef_10cmeshTools_5buildPythonMultilevelMeshInterface = {
"buildPythonMultilevelMeshInterface", (PyCFunction)__pyx_pw_10cmeshTools_5buildPythonMultilevelMeshInterface, METH_O, 0};
13689 static PyObject *__pyx_pw_10cmeshTools_5buildPythonMultilevelMeshInterface(PyObject *__pyx_self, PyObject *__pyx_v_cmultilevelMesh) {
13690 PyObject *__pyx_r = 0;
13691 __Pyx_RefNannyDeclarations
13692 __Pyx_RefNannySetupContext(
"buildPythonMultilevelMeshInterface (wrapper)", 0);
13693 __pyx_r = __pyx_pf_10cmeshTools_4buildPythonMultilevelMeshInterface(__pyx_self, ((PyObject *)__pyx_v_cmultilevelMesh));
13696 __Pyx_RefNannyFinishContext();
13700 static PyObject *__pyx_pf_10cmeshTools_4buildPythonMultilevelMeshInterface(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_cmultilevelMesh) {
13701 PyObject *__pyx_r = NULL;
13702 __Pyx_RefNannyDeclarations
13703 PyObject *__pyx_t_1 = NULL;
13704 PyObject *__pyx_t_2 = NULL;
13705 PyObject *__pyx_t_3 = NULL;
13706 PyObject *__pyx_t_4 = NULL;
13707 PyObject *__pyx_t_5 = NULL;
13708 PyObject *__pyx_t_6 = NULL;
13709 __Pyx_RefNannySetupContext(
"buildPythonMultilevelMeshInterface", 0);
13718 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmultilevelMesh, __pyx_n_s_buildPythonMultilevelMeshInterfa);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 298, __pyx_L1_error)
13719 __Pyx_GOTREF(__pyx_t_2);
13721 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
13722 __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
13723 if (likely(__pyx_t_3)) {
13724 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
13725 __Pyx_INCREF(__pyx_t_3);
13726 __Pyx_INCREF(
function);
13727 __Pyx_DECREF_SET(__pyx_t_2,
function);
13730 __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
13731 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
13732 if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 298, __pyx_L1_error)
13733 __Pyx_GOTREF(__pyx_t_1);
13734 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13735 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
13744 __Pyx_XDECREF(__pyx_r);
13745 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmultilevelMesh, __pyx_n_s_nLevels);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 299, __pyx_L1_error)
13746 __Pyx_GOTREF(__pyx_t_1);
13755 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmultilevelMesh, __pyx_n_s_cmeshList);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 300, __pyx_L1_error)
13756 __Pyx_GOTREF(__pyx_t_2);
13765 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmultilevelMesh, __pyx_n_s_elementParentsArrayList);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 301, __pyx_L1_error)
13766 __Pyx_GOTREF(__pyx_t_3);
13775 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmultilevelMesh, __pyx_n_s_elementChildrenArrayList);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 302, __pyx_L1_error)
13776 __Pyx_GOTREF(__pyx_t_4);
13785 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_cmultilevelMesh, __pyx_n_s_elementChildrenOffsetsList);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 303, __pyx_L1_error)
13786 __Pyx_GOTREF(__pyx_t_5);
13795 __pyx_t_6 = PyTuple_New(5);
if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 299, __pyx_L1_error)
13796 __Pyx_GOTREF(__pyx_t_6);
13797 __Pyx_GIVEREF(__pyx_t_1);
13798 PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
13799 __Pyx_GIVEREF(__pyx_t_2);
13800 PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2);
13801 __Pyx_GIVEREF(__pyx_t_3);
13802 PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_3);
13803 __Pyx_GIVEREF(__pyx_t_4);
13804 PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_4);
13805 __Pyx_GIVEREF(__pyx_t_5);
13806 PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_t_5);
13812 __pyx_r = __pyx_t_6;
13826 __Pyx_XDECREF(__pyx_t_1);
13827 __Pyx_XDECREF(__pyx_t_2);
13828 __Pyx_XDECREF(__pyx_t_3);
13829 __Pyx_XDECREF(__pyx_t_4);
13830 __Pyx_XDECREF(__pyx_t_5);
13831 __Pyx_XDECREF(__pyx_t_6);
13832 __Pyx_AddTraceback(
"cmeshTools.buildPythonMultilevelMeshInterface", __pyx_clineno, __pyx_lineno, __pyx_filename);
13835 __Pyx_XGIVEREF(__pyx_r);
13836 __Pyx_RefNannyFinishContext();
13848 static PyObject *__pyx_pw_10cmeshTools_7generateTetrahedralMeshFromRectangularGrid(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13849 static void __pyx_f_10cmeshTools_generateTetrahedralMeshFromRectangularGrid(
int __pyx_v_nx,
int __pyx_v_ny,
int __pyx_v_nz,
double __pyx_v_Lx,
double __pyx_v_Ly,
double __pyx_v_Lz,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
13850 __Pyx_RefNannyDeclarations
13851 __Pyx_RefNannySetupContext(
"generateTetrahedralMeshFromRectangularGrid", 0);
13898 __Pyx_RefNannyFinishContext();
13902 static PyObject *__pyx_pw_10cmeshTools_7generateTetrahedralMeshFromRectangularGrid(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
13903 static PyObject *__pyx_pw_10cmeshTools_7generateTetrahedralMeshFromRectangularGrid(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13910 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh = 0;
13911 PyObject *__pyx_r = 0;
13912 __Pyx_RefNannyDeclarations
13913 __Pyx_RefNannySetupContext(
"generateTetrahedralMeshFromRectangularGrid (wrapper)", 0);
13915 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nx,&__pyx_n_s_ny,&__pyx_n_s_nz,&__pyx_n_s_Lx,&__pyx_n_s_Ly,&__pyx_n_s_Lz,&__pyx_n_s_cmesh,0};
13916 PyObject* values[7] = {0,0,0,0,0,0,0};
13917 if (unlikely(__pyx_kwds)) {
13918 Py_ssize_t kw_args;
13919 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
13920 switch (pos_args) {
13921 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13922 CYTHON_FALLTHROUGH;
13923 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13924 CYTHON_FALLTHROUGH;
13925 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13926 CYTHON_FALLTHROUGH;
13927 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13928 CYTHON_FALLTHROUGH;
13929 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13930 CYTHON_FALLTHROUGH;
13931 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13932 CYTHON_FALLTHROUGH;
13933 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13934 CYTHON_FALLTHROUGH;
13936 default:
goto __pyx_L5_argtuple_error;
13938 kw_args = PyDict_Size(__pyx_kwds);
13939 switch (pos_args) {
13941 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nx)) != 0)) kw_args--;
13942 else goto __pyx_L5_argtuple_error;
13943 CYTHON_FALLTHROUGH;
13945 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ny)) != 0)) kw_args--;
13947 __Pyx_RaiseArgtupleInvalid(
"generateTetrahedralMeshFromRectangularGrid", 1, 7, 7, 1); __PYX_ERR(1, 305, __pyx_L3_error)
13949 CYTHON_FALLTHROUGH;
13951 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nz)) != 0)) kw_args--;
13953 __Pyx_RaiseArgtupleInvalid(
"generateTetrahedralMeshFromRectangularGrid", 1, 7, 7, 2); __PYX_ERR(1, 305, __pyx_L3_error)
13955 CYTHON_FALLTHROUGH;
13957 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lx)) != 0)) kw_args--;
13959 __Pyx_RaiseArgtupleInvalid(
"generateTetrahedralMeshFromRectangularGrid", 1, 7, 7, 3); __PYX_ERR(1, 305, __pyx_L3_error)
13961 CYTHON_FALLTHROUGH;
13963 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Ly)) != 0)) kw_args--;
13965 __Pyx_RaiseArgtupleInvalid(
"generateTetrahedralMeshFromRectangularGrid", 1, 7, 7, 4); __PYX_ERR(1, 305, __pyx_L3_error)
13967 CYTHON_FALLTHROUGH;
13969 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lz)) != 0)) kw_args--;
13971 __Pyx_RaiseArgtupleInvalid(
"generateTetrahedralMeshFromRectangularGrid", 1, 7, 7, 5); __PYX_ERR(1, 305, __pyx_L3_error)
13973 CYTHON_FALLTHROUGH;
13975 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmesh)) != 0)) kw_args--;
13977 __Pyx_RaiseArgtupleInvalid(
"generateTetrahedralMeshFromRectangularGrid", 1, 7, 7, 6); __PYX_ERR(1, 305, __pyx_L3_error)
13980 if (unlikely(kw_args > 0)) {
13981 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"generateTetrahedralMeshFromRectangularGrid") < 0)) __PYX_ERR(1, 305, __pyx_L3_error)
13983 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
13984 goto __pyx_L5_argtuple_error;
13986 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13987 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13988 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
13989 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
13990 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
13991 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
13992 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
13994 __pyx_v_nx = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nx == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 305, __pyx_L3_error)
13995 __pyx_v_ny = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_ny == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 306, __pyx_L3_error)
13996 __pyx_v_nz = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nz == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 307, __pyx_L3_error)
13997 __pyx_v_Lx = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_Lx == (
double)-1) && PyErr_Occurred())) __PYX_ERR(1, 308, __pyx_L3_error)
13998 __pyx_v_Ly = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_Ly == (
double)-1) && PyErr_Occurred())) __PYX_ERR(1, 309, __pyx_L3_error)
13999 __pyx_v_Lz = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_Lz == (
double)-1) && PyErr_Occurred())) __PYX_ERR(1, 310, __pyx_L3_error)
14000 __pyx_v_cmesh = ((
struct __pyx_obj_10cmeshTools_CMesh *)values[6]);
14002 goto __pyx_L4_argument_unpacking_done;
14003 __pyx_L5_argtuple_error:;
14004 __Pyx_RaiseArgtupleInvalid(
"generateTetrahedralMeshFromRectangularGrid", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 305, __pyx_L3_error)
14006 __Pyx_AddTraceback(
"cmeshTools.generateTetrahedralMeshFromRectangularGrid", __pyx_clineno, __pyx_lineno, __pyx_filename);
14007 __Pyx_RefNannyFinishContext();
14009 __pyx_L4_argument_unpacking_done:;
14010 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 311, __pyx_L1_error)
14011 __pyx_r = __pyx_pf_10cmeshTools_6generateTetrahedralMeshFromRectangularGrid(__pyx_self, __pyx_v_nx, __pyx_v_ny, __pyx_v_nz, __pyx_v_Lx, __pyx_v_Ly, __pyx_v_Lz, __pyx_v_cmesh);
14018 __Pyx_RefNannyFinishContext();
14022 static PyObject *__pyx_pf_10cmeshTools_6generateTetrahedralMeshFromRectangularGrid(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nx,
int __pyx_v_ny,
int __pyx_v_nz,
double __pyx_v_Lx,
double __pyx_v_Ly,
double __pyx_v_Lz,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
14023 PyObject *__pyx_r = NULL;
14024 __Pyx_RefNannyDeclarations
14025 PyObject *__pyx_t_1 = NULL;
14026 __Pyx_RefNannySetupContext(
"generateTetrahedralMeshFromRectangularGrid", 0);
14027 __Pyx_XDECREF(__pyx_r);
14028 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_generateTetrahedralMeshFromRectangularGrid(__pyx_v_nx, __pyx_v_ny, __pyx_v_nz, __pyx_v_Lx, __pyx_v_Ly, __pyx_v_Lz, __pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 305, __pyx_L1_error)
14029 __Pyx_GOTREF(__pyx_t_1);
14030 __pyx_r = __pyx_t_1;
14036 __Pyx_XDECREF(__pyx_t_1);
14037 __Pyx_AddTraceback(
"cmeshTools.generateTetrahedralMeshFromRectangularGrid", __pyx_clineno, __pyx_lineno, __pyx_filename);
14040 __Pyx_XGIVEREF(__pyx_r);
14041 __Pyx_RefNannyFinishContext();
14053 static PyObject *__pyx_pw_10cmeshTools_9cmeshToolsComputeGeometricInfo_tetrahedron(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
14054 static void __pyx_f_10cmeshTools_cmeshToolsComputeGeometricInfo_tetrahedron(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
14055 __Pyx_RefNannyDeclarations
14056 __Pyx_RefNannySetupContext(
"cmeshToolsComputeGeometricInfo_tetrahedron", 0);
14076 __Pyx_RefNannyFinishContext();
14080 static PyObject *__pyx_pw_10cmeshTools_9cmeshToolsComputeGeometricInfo_tetrahedron(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
14081 static PyObject *__pyx_pw_10cmeshTools_9cmeshToolsComputeGeometricInfo_tetrahedron(PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
14082 PyObject *__pyx_r = 0;
14083 __Pyx_RefNannyDeclarations
14084 __Pyx_RefNannySetupContext(
"cmeshToolsComputeGeometricInfo_tetrahedron (wrapper)", 0);
14085 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 317, __pyx_L1_error)
14086 __pyx_r = __pyx_pf_10cmeshTools_8cmeshToolsComputeGeometricInfo_tetrahedron(__pyx_self, ((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_cmesh));
14093 __Pyx_RefNannyFinishContext();
14097 static PyObject *__pyx_pf_10cmeshTools_8cmeshToolsComputeGeometricInfo_tetrahedron(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
14098 PyObject *__pyx_r = NULL;
14099 __Pyx_RefNannyDeclarations
14100 PyObject *__pyx_t_1 = NULL;
14101 __Pyx_RefNannySetupContext(
"cmeshToolsComputeGeometricInfo_tetrahedron", 0);
14102 __Pyx_XDECREF(__pyx_r);
14103 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_cmeshToolsComputeGeometricInfo_tetrahedron(__pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 317, __pyx_L1_error)
14104 __Pyx_GOTREF(__pyx_t_1);
14105 __pyx_r = __pyx_t_1;
14111 __Pyx_XDECREF(__pyx_t_1);
14112 __Pyx_AddTraceback(
"cmeshTools.cmeshToolsComputeGeometricInfo_tetrahedron", __pyx_clineno, __pyx_lineno, __pyx_filename);
14115 __Pyx_XGIVEREF(__pyx_r);
14116 __Pyx_RefNannyFinishContext();
14128 static PyObject *__pyx_pw_10cmeshTools_11generateFromTriangleFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14129 static void __pyx_f_10cmeshTools_generateFromTriangleFiles(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base, CYTHON_UNUSED
int __pyx_skip_dispatch) {
14130 CYTHON_UNUSED
int __pyx_v_failed;
14131 __Pyx_RefNannyDeclarations
14132 PyObject *__pyx_t_1 = NULL;
14133 char const *__pyx_t_2;
14134 char const *__pyx_t_3;
14135 __Pyx_RefNannySetupContext(
"generateFromTriangleFiles", 0);
14144 if (unlikely(__pyx_v_filebase == Py_None)) {
14145 PyErr_Format(PyExc_AttributeError,
"'NoneType' object has no attribute '%.30s'",
"encode");
14146 __PYX_ERR(1, 328, __pyx_L1_error)
14148 __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_filebase);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 328, __pyx_L1_error)
14149 __Pyx_GOTREF(__pyx_t_1);
14150 __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1);
if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 328, __pyx_L1_error)
14151 __pyx_v_failed =
readTriangleMesh(__pyx_v_cmesh->mesh, __pyx_t_2, __pyx_v_base);
14152 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14170 if (unlikely(__pyx_v_filebase == Py_None)) {
14171 PyErr_Format(PyExc_AttributeError,
"'NoneType' object has no attribute '%.30s'",
"encode");
14172 __PYX_ERR(1, 330, __pyx_L1_error)
14174 __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_filebase);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 330, __pyx_L1_error)
14175 __Pyx_GOTREF(__pyx_t_1);
14176 __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_1);
if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(1, 330, __pyx_L1_error)
14178 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14191 __Pyx_XDECREF(__pyx_t_1);
14192 __Pyx_WriteUnraisable(
"cmeshTools.generateFromTriangleFiles", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
14194 __Pyx_RefNannyFinishContext();
14198 static PyObject *__pyx_pw_10cmeshTools_11generateFromTriangleFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14199 static PyObject *__pyx_pw_10cmeshTools_11generateFromTriangleFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14200 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh = 0;
14201 PyObject *__pyx_v_filebase = 0;
14203 PyObject *__pyx_r = 0;
14204 __Pyx_RefNannyDeclarations
14205 __Pyx_RefNannySetupContext(
"generateFromTriangleFiles (wrapper)", 0);
14207 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cmesh,&__pyx_n_s_filebase,&__pyx_n_s_base,0};
14208 PyObject* values[3] = {0,0,0};
14209 if (unlikely(__pyx_kwds)) {
14210 Py_ssize_t kw_args;
14211 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14212 switch (pos_args) {
14213 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14214 CYTHON_FALLTHROUGH;
14215 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14216 CYTHON_FALLTHROUGH;
14217 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14218 CYTHON_FALLTHROUGH;
14220 default:
goto __pyx_L5_argtuple_error;
14222 kw_args = PyDict_Size(__pyx_kwds);
14223 switch (pos_args) {
14225 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmesh)) != 0)) kw_args--;
14226 else goto __pyx_L5_argtuple_error;
14227 CYTHON_FALLTHROUGH;
14229 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filebase)) != 0)) kw_args--;
14231 __Pyx_RaiseArgtupleInvalid(
"generateFromTriangleFiles", 1, 3, 3, 1); __PYX_ERR(1, 323, __pyx_L3_error)
14233 CYTHON_FALLTHROUGH;
14235 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_base)) != 0)) kw_args--;
14237 __Pyx_RaiseArgtupleInvalid(
"generateFromTriangleFiles", 1, 3, 3, 2); __PYX_ERR(1, 323, __pyx_L3_error)
14240 if (unlikely(kw_args > 0)) {
14241 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"generateFromTriangleFiles") < 0)) __PYX_ERR(1, 323, __pyx_L3_error)
14243 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
14244 goto __pyx_L5_argtuple_error;
14246 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14247 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14248 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14250 __pyx_v_cmesh = ((
struct __pyx_obj_10cmeshTools_CMesh *)values[0]);
14251 __pyx_v_filebase = ((PyObject*)values[1]);
14252 __pyx_v_base = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_base == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 325, __pyx_L3_error)
14254 goto __pyx_L4_argument_unpacking_done;
14255 __pyx_L5_argtuple_error:;
14256 __Pyx_RaiseArgtupleInvalid(
"generateFromTriangleFiles", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 323, __pyx_L3_error)
14258 __Pyx_AddTraceback(
"cmeshTools.generateFromTriangleFiles", __pyx_clineno, __pyx_lineno, __pyx_filename);
14259 __Pyx_RefNannyFinishContext();
14261 __pyx_L4_argument_unpacking_done:;
14262 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 323, __pyx_L1_error)
14263 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_filebase), (&PyUnicode_Type), 1,
"filebase", 1))) __PYX_ERR(1, 324, __pyx_L1_error)
14264 __pyx_r = __pyx_pf_10cmeshTools_10generateFromTriangleFiles(__pyx_self, __pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base);
14271 __Pyx_RefNannyFinishContext();
14275 static PyObject *__pyx_pf_10cmeshTools_10generateFromTriangleFiles(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base) {
14276 PyObject *__pyx_r = NULL;
14277 __Pyx_RefNannyDeclarations
14278 PyObject *__pyx_t_1 = NULL;
14279 __Pyx_RefNannySetupContext(
"generateFromTriangleFiles", 0);
14280 __Pyx_XDECREF(__pyx_r);
14281 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_generateFromTriangleFiles(__pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 323, __pyx_L1_error)
14282 __Pyx_GOTREF(__pyx_t_1);
14283 __pyx_r = __pyx_t_1;
14289 __Pyx_XDECREF(__pyx_t_1);
14290 __Pyx_AddTraceback(
"cmeshTools.generateFromTriangleFiles", __pyx_clineno, __pyx_lineno, __pyx_filename);
14293 __Pyx_XGIVEREF(__pyx_r);
14294 __Pyx_RefNannyFinishContext();
14306 static PyObject *__pyx_pw_10cmeshTools_13writeTriangleFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14307 static void __pyx_f_10cmeshTools_writeTriangleFiles(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base, CYTHON_UNUSED
int __pyx_skip_dispatch) {
14308 CYTHON_UNUSED
int __pyx_v_failed;
14309 __Pyx_RefNannyDeclarations
14310 PyObject *__pyx_t_1 = NULL;
14311 char const *__pyx_t_2;
14312 __Pyx_RefNannySetupContext(
"writeTriangleFiles", 0);
14321 if (unlikely(__pyx_v_filebase == Py_None)) {
14322 PyErr_Format(PyExc_AttributeError,
"'NoneType' object has no attribute '%.30s'",
"encode");
14323 __PYX_ERR(1, 336, __pyx_L1_error)
14325 __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_filebase);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 336, __pyx_L1_error)
14326 __Pyx_GOTREF(__pyx_t_1);
14327 __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1);
if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 336, __pyx_L1_error)
14328 __pyx_v_failed =
writeTriangleMesh(__pyx_v_cmesh->mesh, __pyx_t_2, __pyx_v_base);
14329 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14342 __Pyx_XDECREF(__pyx_t_1);
14343 __Pyx_WriteUnraisable(
"cmeshTools.writeTriangleFiles", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
14345 __Pyx_RefNannyFinishContext();
14349 static PyObject *__pyx_pw_10cmeshTools_13writeTriangleFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14350 static PyObject *__pyx_pw_10cmeshTools_13writeTriangleFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14351 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh = 0;
14352 PyObject *__pyx_v_filebase = 0;
14354 PyObject *__pyx_r = 0;
14355 __Pyx_RefNannyDeclarations
14356 __Pyx_RefNannySetupContext(
"writeTriangleFiles (wrapper)", 0);
14358 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cmesh,&__pyx_n_s_filebase,&__pyx_n_s_base,0};
14359 PyObject* values[3] = {0,0,0};
14360 if (unlikely(__pyx_kwds)) {
14361 Py_ssize_t kw_args;
14362 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14363 switch (pos_args) {
14364 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14365 CYTHON_FALLTHROUGH;
14366 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14367 CYTHON_FALLTHROUGH;
14368 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14369 CYTHON_FALLTHROUGH;
14371 default:
goto __pyx_L5_argtuple_error;
14373 kw_args = PyDict_Size(__pyx_kwds);
14374 switch (pos_args) {
14376 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmesh)) != 0)) kw_args--;
14377 else goto __pyx_L5_argtuple_error;
14378 CYTHON_FALLTHROUGH;
14380 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filebase)) != 0)) kw_args--;
14382 __Pyx_RaiseArgtupleInvalid(
"writeTriangleFiles", 1, 3, 3, 1); __PYX_ERR(1, 332, __pyx_L3_error)
14384 CYTHON_FALLTHROUGH;
14386 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_base)) != 0)) kw_args--;
14388 __Pyx_RaiseArgtupleInvalid(
"writeTriangleFiles", 1, 3, 3, 2); __PYX_ERR(1, 332, __pyx_L3_error)
14391 if (unlikely(kw_args > 0)) {
14392 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"writeTriangleFiles") < 0)) __PYX_ERR(1, 332, __pyx_L3_error)
14394 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
14395 goto __pyx_L5_argtuple_error;
14397 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14398 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14399 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14401 __pyx_v_cmesh = ((
struct __pyx_obj_10cmeshTools_CMesh *)values[0]);
14402 __pyx_v_filebase = ((PyObject*)values[1]);
14403 __pyx_v_base = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_base == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 334, __pyx_L3_error)
14405 goto __pyx_L4_argument_unpacking_done;
14406 __pyx_L5_argtuple_error:;
14407 __Pyx_RaiseArgtupleInvalid(
"writeTriangleFiles", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 332, __pyx_L3_error)
14409 __Pyx_AddTraceback(
"cmeshTools.writeTriangleFiles", __pyx_clineno, __pyx_lineno, __pyx_filename);
14410 __Pyx_RefNannyFinishContext();
14412 __pyx_L4_argument_unpacking_done:;
14413 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 332, __pyx_L1_error)
14414 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_filebase), (&PyUnicode_Type), 1,
"filebase", 1))) __PYX_ERR(1, 333, __pyx_L1_error)
14415 __pyx_r = __pyx_pf_10cmeshTools_12writeTriangleFiles(__pyx_self, __pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base);
14422 __Pyx_RefNannyFinishContext();
14426 static PyObject *__pyx_pf_10cmeshTools_12writeTriangleFiles(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base) {
14427 PyObject *__pyx_r = NULL;
14428 __Pyx_RefNannyDeclarations
14429 PyObject *__pyx_t_1 = NULL;
14430 __Pyx_RefNannySetupContext(
"writeTriangleFiles", 0);
14431 __Pyx_XDECREF(__pyx_r);
14432 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_writeTriangleFiles(__pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 332, __pyx_L1_error)
14433 __Pyx_GOTREF(__pyx_t_1);
14434 __pyx_r = __pyx_t_1;
14440 __Pyx_XDECREF(__pyx_t_1);
14441 __Pyx_AddTraceback(
"cmeshTools.writeTriangleFiles", __pyx_clineno, __pyx_lineno, __pyx_filename);
14444 __Pyx_XGIVEREF(__pyx_r);
14445 __Pyx_RefNannyFinishContext();
14457 static PyObject *__pyx_pw_10cmeshTools_15generateFromTetgenFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14458 static void __pyx_f_10cmeshTools_generateFromTetgenFiles(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base, CYTHON_UNUSED
int __pyx_skip_dispatch) {
14459 CYTHON_UNUSED
int __pyx_v_failed;
14460 __Pyx_RefNannyDeclarations
14461 PyObject *__pyx_t_1 = NULL;
14462 char const *__pyx_t_2;
14463 char const *__pyx_t_3;
14464 __Pyx_RefNannySetupContext(
"generateFromTetgenFiles", 0);
14473 if (unlikely(__pyx_v_filebase == Py_None)) {
14474 PyErr_Format(PyExc_AttributeError,
"'NoneType' object has no attribute '%.30s'",
"encode");
14475 __PYX_ERR(1, 342, __pyx_L1_error)
14477 __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_filebase);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 342, __pyx_L1_error)
14478 __Pyx_GOTREF(__pyx_t_1);
14479 __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1);
if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 342, __pyx_L1_error)
14480 __pyx_v_failed =
readTetgenMesh(__pyx_v_cmesh->mesh, __pyx_t_2, __pyx_v_base);
14481 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14499 if (unlikely(__pyx_v_filebase == Py_None)) {
14500 PyErr_Format(PyExc_AttributeError,
"'NoneType' object has no attribute '%.30s'",
"encode");
14501 __PYX_ERR(1, 344, __pyx_L1_error)
14503 __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_filebase);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 344, __pyx_L1_error)
14504 __Pyx_GOTREF(__pyx_t_1);
14505 __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_1);
if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(1, 344, __pyx_L1_error)
14507 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14520 __Pyx_XDECREF(__pyx_t_1);
14521 __Pyx_WriteUnraisable(
"cmeshTools.generateFromTetgenFiles", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
14523 __Pyx_RefNannyFinishContext();
14527 static PyObject *__pyx_pw_10cmeshTools_15generateFromTetgenFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14528 static PyObject *__pyx_pw_10cmeshTools_15generateFromTetgenFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14529 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh = 0;
14530 PyObject *__pyx_v_filebase = 0;
14532 PyObject *__pyx_r = 0;
14533 __Pyx_RefNannyDeclarations
14534 __Pyx_RefNannySetupContext(
"generateFromTetgenFiles (wrapper)", 0);
14536 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cmesh,&__pyx_n_s_filebase,&__pyx_n_s_base,0};
14537 PyObject* values[3] = {0,0,0};
14538 if (unlikely(__pyx_kwds)) {
14539 Py_ssize_t kw_args;
14540 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14541 switch (pos_args) {
14542 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14543 CYTHON_FALLTHROUGH;
14544 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14545 CYTHON_FALLTHROUGH;
14546 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14547 CYTHON_FALLTHROUGH;
14549 default:
goto __pyx_L5_argtuple_error;
14551 kw_args = PyDict_Size(__pyx_kwds);
14552 switch (pos_args) {
14554 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmesh)) != 0)) kw_args--;
14555 else goto __pyx_L5_argtuple_error;
14556 CYTHON_FALLTHROUGH;
14558 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filebase)) != 0)) kw_args--;
14560 __Pyx_RaiseArgtupleInvalid(
"generateFromTetgenFiles", 1, 3, 3, 1); __PYX_ERR(1, 338, __pyx_L3_error)
14562 CYTHON_FALLTHROUGH;
14564 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_base)) != 0)) kw_args--;
14566 __Pyx_RaiseArgtupleInvalid(
"generateFromTetgenFiles", 1, 3, 3, 2); __PYX_ERR(1, 338, __pyx_L3_error)
14569 if (unlikely(kw_args > 0)) {
14570 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"generateFromTetgenFiles") < 0)) __PYX_ERR(1, 338, __pyx_L3_error)
14572 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
14573 goto __pyx_L5_argtuple_error;
14575 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14576 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14577 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14579 __pyx_v_cmesh = ((
struct __pyx_obj_10cmeshTools_CMesh *)values[0]);
14580 __pyx_v_filebase = ((PyObject*)values[1]);
14581 __pyx_v_base = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_base == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 340, __pyx_L3_error)
14583 goto __pyx_L4_argument_unpacking_done;
14584 __pyx_L5_argtuple_error:;
14585 __Pyx_RaiseArgtupleInvalid(
"generateFromTetgenFiles", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 338, __pyx_L3_error)
14587 __Pyx_AddTraceback(
"cmeshTools.generateFromTetgenFiles", __pyx_clineno, __pyx_lineno, __pyx_filename);
14588 __Pyx_RefNannyFinishContext();
14590 __pyx_L4_argument_unpacking_done:;
14591 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 338, __pyx_L1_error)
14592 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_filebase), (&PyUnicode_Type), 1,
"filebase", 1))) __PYX_ERR(1, 339, __pyx_L1_error)
14593 __pyx_r = __pyx_pf_10cmeshTools_14generateFromTetgenFiles(__pyx_self, __pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base);
14600 __Pyx_RefNannyFinishContext();
14604 static PyObject *__pyx_pf_10cmeshTools_14generateFromTetgenFiles(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base) {
14605 PyObject *__pyx_r = NULL;
14606 __Pyx_RefNannyDeclarations
14607 PyObject *__pyx_t_1 = NULL;
14608 __Pyx_RefNannySetupContext(
"generateFromTetgenFiles", 0);
14609 __Pyx_XDECREF(__pyx_r);
14610 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_generateFromTetgenFiles(__pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 338, __pyx_L1_error)
14611 __Pyx_GOTREF(__pyx_t_1);
14612 __pyx_r = __pyx_t_1;
14618 __Pyx_XDECREF(__pyx_t_1);
14619 __Pyx_AddTraceback(
"cmeshTools.generateFromTetgenFiles", __pyx_clineno, __pyx_lineno, __pyx_filename);
14622 __Pyx_XGIVEREF(__pyx_r);
14623 __Pyx_RefNannyFinishContext();
14635 static PyObject *__pyx_pw_10cmeshTools_17generateFromTetgenFilesParallel(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14636 static void __pyx_f_10cmeshTools_generateFromTetgenFilesParallel(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base, CYTHON_UNUSED
int __pyx_skip_dispatch) {
14637 CYTHON_UNUSED
int __pyx_v_failed;
14638 __Pyx_RefNannyDeclarations
14639 PyObject *__pyx_t_1 = NULL;
14640 char const *__pyx_t_2;
14641 char const *__pyx_t_3;
14642 __Pyx_RefNannySetupContext(
"generateFromTetgenFilesParallel", 0);
14651 if (unlikely(__pyx_v_filebase == Py_None)) {
14652 PyErr_Format(PyExc_AttributeError,
"'NoneType' object has no attribute '%.30s'",
"encode");
14653 __PYX_ERR(1, 350, __pyx_L1_error)
14655 __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_filebase);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 350, __pyx_L1_error)
14656 __Pyx_GOTREF(__pyx_t_1);
14657 __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1);
if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 350, __pyx_L1_error)
14658 __pyx_v_failed =
readTetgenMesh(__pyx_v_cmesh->mesh, __pyx_t_2, __pyx_v_base);
14659 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14677 if (unlikely(__pyx_v_filebase == Py_None)) {
14678 PyErr_Format(PyExc_AttributeError,
"'NoneType' object has no attribute '%.30s'",
"encode");
14679 __PYX_ERR(1, 352, __pyx_L1_error)
14681 __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_filebase);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 352, __pyx_L1_error)
14682 __Pyx_GOTREF(__pyx_t_1);
14683 __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_1);
if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(1, 352, __pyx_L1_error)
14685 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14698 __Pyx_XDECREF(__pyx_t_1);
14699 __Pyx_WriteUnraisable(
"cmeshTools.generateFromTetgenFilesParallel", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
14701 __Pyx_RefNannyFinishContext();
14705 static PyObject *__pyx_pw_10cmeshTools_17generateFromTetgenFilesParallel(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14706 static PyObject *__pyx_pw_10cmeshTools_17generateFromTetgenFilesParallel(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14707 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh = 0;
14708 PyObject *__pyx_v_filebase = 0;
14710 PyObject *__pyx_r = 0;
14711 __Pyx_RefNannyDeclarations
14712 __Pyx_RefNannySetupContext(
"generateFromTetgenFilesParallel (wrapper)", 0);
14714 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cmesh,&__pyx_n_s_filebase,&__pyx_n_s_base,0};
14715 PyObject* values[3] = {0,0,0};
14716 if (unlikely(__pyx_kwds)) {
14717 Py_ssize_t kw_args;
14718 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14719 switch (pos_args) {
14720 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14721 CYTHON_FALLTHROUGH;
14722 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14723 CYTHON_FALLTHROUGH;
14724 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14725 CYTHON_FALLTHROUGH;
14727 default:
goto __pyx_L5_argtuple_error;
14729 kw_args = PyDict_Size(__pyx_kwds);
14730 switch (pos_args) {
14732 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmesh)) != 0)) kw_args--;
14733 else goto __pyx_L5_argtuple_error;
14734 CYTHON_FALLTHROUGH;
14736 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filebase)) != 0)) kw_args--;
14738 __Pyx_RaiseArgtupleInvalid(
"generateFromTetgenFilesParallel", 1, 3, 3, 1); __PYX_ERR(1, 346, __pyx_L3_error)
14740 CYTHON_FALLTHROUGH;
14742 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_base)) != 0)) kw_args--;
14744 __Pyx_RaiseArgtupleInvalid(
"generateFromTetgenFilesParallel", 1, 3, 3, 2); __PYX_ERR(1, 346, __pyx_L3_error)
14747 if (unlikely(kw_args > 0)) {
14748 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"generateFromTetgenFilesParallel") < 0)) __PYX_ERR(1, 346, __pyx_L3_error)
14750 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
14751 goto __pyx_L5_argtuple_error;
14753 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14754 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14755 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14757 __pyx_v_cmesh = ((
struct __pyx_obj_10cmeshTools_CMesh *)values[0]);
14758 __pyx_v_filebase = ((PyObject*)values[1]);
14759 __pyx_v_base = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_base == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 348, __pyx_L3_error)
14761 goto __pyx_L4_argument_unpacking_done;
14762 __pyx_L5_argtuple_error:;
14763 __Pyx_RaiseArgtupleInvalid(
"generateFromTetgenFilesParallel", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 346, __pyx_L3_error)
14765 __Pyx_AddTraceback(
"cmeshTools.generateFromTetgenFilesParallel", __pyx_clineno, __pyx_lineno, __pyx_filename);
14766 __Pyx_RefNannyFinishContext();
14768 __pyx_L4_argument_unpacking_done:;
14769 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 346, __pyx_L1_error)
14770 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_filebase), (&PyUnicode_Type), 1,
"filebase", 1))) __PYX_ERR(1, 347, __pyx_L1_error)
14771 __pyx_r = __pyx_pf_10cmeshTools_16generateFromTetgenFilesParallel(__pyx_self, __pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base);
14778 __Pyx_RefNannyFinishContext();
14782 static PyObject *__pyx_pf_10cmeshTools_16generateFromTetgenFilesParallel(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base) {
14783 PyObject *__pyx_r = NULL;
14784 __Pyx_RefNannyDeclarations
14785 PyObject *__pyx_t_1 = NULL;
14786 __Pyx_RefNannySetupContext(
"generateFromTetgenFilesParallel", 0);
14787 __Pyx_XDECREF(__pyx_r);
14788 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_generateFromTetgenFilesParallel(__pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 346, __pyx_L1_error)
14789 __Pyx_GOTREF(__pyx_t_1);
14790 __pyx_r = __pyx_t_1;
14796 __Pyx_XDECREF(__pyx_t_1);
14797 __Pyx_AddTraceback(
"cmeshTools.generateFromTetgenFilesParallel", __pyx_clineno, __pyx_lineno, __pyx_filename);
14800 __Pyx_XGIVEREF(__pyx_r);
14801 __Pyx_RefNannyFinishContext();
14813 static PyObject *__pyx_pw_10cmeshTools_19writeTetgenFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14814 static void __pyx_f_10cmeshTools_writeTetgenFiles(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base, CYTHON_UNUSED
int __pyx_skip_dispatch) {
14815 CYTHON_UNUSED
int __pyx_v_failed;
14816 __Pyx_RefNannyDeclarations
14817 PyObject *__pyx_t_1 = NULL;
14818 char const *__pyx_t_2;
14819 __Pyx_RefNannySetupContext(
"writeTetgenFiles", 0);
14828 if (unlikely(__pyx_v_filebase == Py_None)) {
14829 PyErr_Format(PyExc_AttributeError,
"'NoneType' object has no attribute '%.30s'",
"encode");
14830 __PYX_ERR(1, 358, __pyx_L1_error)
14832 __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_filebase);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 358, __pyx_L1_error)
14833 __Pyx_GOTREF(__pyx_t_1);
14834 __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1);
if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 358, __pyx_L1_error)
14835 __pyx_v_failed =
writeTetgenMesh(__pyx_v_cmesh->mesh, __pyx_t_2, __pyx_v_base);
14836 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
14849 __Pyx_XDECREF(__pyx_t_1);
14850 __Pyx_WriteUnraisable(
"cmeshTools.writeTetgenFiles", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
14852 __Pyx_RefNannyFinishContext();
14856 static PyObject *__pyx_pw_10cmeshTools_19writeTetgenFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14857 static PyObject *__pyx_pw_10cmeshTools_19writeTetgenFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14858 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh = 0;
14859 PyObject *__pyx_v_filebase = 0;
14861 PyObject *__pyx_r = 0;
14862 __Pyx_RefNannyDeclarations
14863 __Pyx_RefNannySetupContext(
"writeTetgenFiles (wrapper)", 0);
14865 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cmesh,&__pyx_n_s_filebase,&__pyx_n_s_base,0};
14866 PyObject* values[3] = {0,0,0};
14867 if (unlikely(__pyx_kwds)) {
14868 Py_ssize_t kw_args;
14869 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
14870 switch (pos_args) {
14871 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14872 CYTHON_FALLTHROUGH;
14873 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14874 CYTHON_FALLTHROUGH;
14875 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14876 CYTHON_FALLTHROUGH;
14878 default:
goto __pyx_L5_argtuple_error;
14880 kw_args = PyDict_Size(__pyx_kwds);
14881 switch (pos_args) {
14883 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmesh)) != 0)) kw_args--;
14884 else goto __pyx_L5_argtuple_error;
14885 CYTHON_FALLTHROUGH;
14887 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filebase)) != 0)) kw_args--;
14889 __Pyx_RaiseArgtupleInvalid(
"writeTetgenFiles", 1, 3, 3, 1); __PYX_ERR(1, 354, __pyx_L3_error)
14891 CYTHON_FALLTHROUGH;
14893 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_base)) != 0)) kw_args--;
14895 __Pyx_RaiseArgtupleInvalid(
"writeTetgenFiles", 1, 3, 3, 2); __PYX_ERR(1, 354, __pyx_L3_error)
14898 if (unlikely(kw_args > 0)) {
14899 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"writeTetgenFiles") < 0)) __PYX_ERR(1, 354, __pyx_L3_error)
14901 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
14902 goto __pyx_L5_argtuple_error;
14904 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14905 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14906 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14908 __pyx_v_cmesh = ((
struct __pyx_obj_10cmeshTools_CMesh *)values[0]);
14909 __pyx_v_filebase = ((PyObject*)values[1]);
14910 __pyx_v_base = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_base == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 356, __pyx_L3_error)
14912 goto __pyx_L4_argument_unpacking_done;
14913 __pyx_L5_argtuple_error:;
14914 __Pyx_RaiseArgtupleInvalid(
"writeTetgenFiles", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 354, __pyx_L3_error)
14916 __Pyx_AddTraceback(
"cmeshTools.writeTetgenFiles", __pyx_clineno, __pyx_lineno, __pyx_filename);
14917 __Pyx_RefNannyFinishContext();
14919 __pyx_L4_argument_unpacking_done:;
14920 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 354, __pyx_L1_error)
14921 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_filebase), (&PyUnicode_Type), 1,
"filebase", 1))) __PYX_ERR(1, 355, __pyx_L1_error)
14922 __pyx_r = __pyx_pf_10cmeshTools_18writeTetgenFiles(__pyx_self, __pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base);
14929 __Pyx_RefNannyFinishContext();
14933 static PyObject *__pyx_pf_10cmeshTools_18writeTetgenFiles(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base) {
14934 PyObject *__pyx_r = NULL;
14935 __Pyx_RefNannyDeclarations
14936 PyObject *__pyx_t_1 = NULL;
14937 __Pyx_RefNannySetupContext(
"writeTetgenFiles", 0);
14938 __Pyx_XDECREF(__pyx_r);
14939 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_writeTetgenFiles(__pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 354, __pyx_L1_error)
14940 __Pyx_GOTREF(__pyx_t_1);
14941 __pyx_r = __pyx_t_1;
14947 __Pyx_XDECREF(__pyx_t_1);
14948 __Pyx_AddTraceback(
"cmeshTools.writeTetgenFiles", __pyx_clineno, __pyx_lineno, __pyx_filename);
14951 __Pyx_XGIVEREF(__pyx_r);
14952 __Pyx_RefNannyFinishContext();
14964 static PyObject *__pyx_pw_10cmeshTools_21write3dmFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
14965 static void __pyx_f_10cmeshTools_write3dmFiles(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base, CYTHON_UNUSED
int __pyx_skip_dispatch) {
14966 CYTHON_UNUSED
int __pyx_v_failed;
14967 __Pyx_RefNannyDeclarations
14968 PyObject *__pyx_t_1 = NULL;
14969 char const *__pyx_t_2;
14970 __Pyx_RefNannySetupContext(
"write3dmFiles", 0);
14979 if (unlikely(__pyx_v_filebase == Py_None)) {
14980 PyErr_Format(PyExc_AttributeError,
"'NoneType' object has no attribute '%.30s'",
"encode");
14981 __PYX_ERR(1, 364, __pyx_L1_error)
14983 __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_filebase);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 364, __pyx_L1_error)
14984 __Pyx_GOTREF(__pyx_t_1);
14985 __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1);
if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 364, __pyx_L1_error)
14986 __pyx_v_failed =
write3dmMesh(__pyx_v_cmesh->mesh, __pyx_t_2, __pyx_v_base);
14987 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15000 __Pyx_XDECREF(__pyx_t_1);
15001 __Pyx_WriteUnraisable(
"cmeshTools.write3dmFiles", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
15003 __Pyx_RefNannyFinishContext();
15007 static PyObject *__pyx_pw_10cmeshTools_21write3dmFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15008 static PyObject *__pyx_pw_10cmeshTools_21write3dmFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15009 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh = 0;
15010 PyObject *__pyx_v_filebase = 0;
15012 PyObject *__pyx_r = 0;
15013 __Pyx_RefNannyDeclarations
15014 __Pyx_RefNannySetupContext(
"write3dmFiles (wrapper)", 0);
15016 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cmesh,&__pyx_n_s_filebase,&__pyx_n_s_base,0};
15017 PyObject* values[3] = {0,0,0};
15018 if (unlikely(__pyx_kwds)) {
15019 Py_ssize_t kw_args;
15020 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15021 switch (pos_args) {
15022 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15023 CYTHON_FALLTHROUGH;
15024 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15025 CYTHON_FALLTHROUGH;
15026 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15027 CYTHON_FALLTHROUGH;
15029 default:
goto __pyx_L5_argtuple_error;
15031 kw_args = PyDict_Size(__pyx_kwds);
15032 switch (pos_args) {
15034 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmesh)) != 0)) kw_args--;
15035 else goto __pyx_L5_argtuple_error;
15036 CYTHON_FALLTHROUGH;
15038 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filebase)) != 0)) kw_args--;
15040 __Pyx_RaiseArgtupleInvalid(
"write3dmFiles", 1, 3, 3, 1); __PYX_ERR(1, 360, __pyx_L3_error)
15042 CYTHON_FALLTHROUGH;
15044 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_base)) != 0)) kw_args--;
15046 __Pyx_RaiseArgtupleInvalid(
"write3dmFiles", 1, 3, 3, 2); __PYX_ERR(1, 360, __pyx_L3_error)
15049 if (unlikely(kw_args > 0)) {
15050 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"write3dmFiles") < 0)) __PYX_ERR(1, 360, __pyx_L3_error)
15052 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
15053 goto __pyx_L5_argtuple_error;
15055 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15056 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15057 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15059 __pyx_v_cmesh = ((
struct __pyx_obj_10cmeshTools_CMesh *)values[0]);
15060 __pyx_v_filebase = ((PyObject*)values[1]);
15061 __pyx_v_base = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_base == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 362, __pyx_L3_error)
15063 goto __pyx_L4_argument_unpacking_done;
15064 __pyx_L5_argtuple_error:;
15065 __Pyx_RaiseArgtupleInvalid(
"write3dmFiles", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 360, __pyx_L3_error)
15067 __Pyx_AddTraceback(
"cmeshTools.write3dmFiles", __pyx_clineno, __pyx_lineno, __pyx_filename);
15068 __Pyx_RefNannyFinishContext();
15070 __pyx_L4_argument_unpacking_done:;
15071 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 360, __pyx_L1_error)
15072 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_filebase), (&PyUnicode_Type), 1,
"filebase", 1))) __PYX_ERR(1, 361, __pyx_L1_error)
15073 __pyx_r = __pyx_pf_10cmeshTools_20write3dmFiles(__pyx_self, __pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base);
15080 __Pyx_RefNannyFinishContext();
15084 static PyObject *__pyx_pf_10cmeshTools_20write3dmFiles(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base) {
15085 PyObject *__pyx_r = NULL;
15086 __Pyx_RefNannyDeclarations
15087 PyObject *__pyx_t_1 = NULL;
15088 __Pyx_RefNannySetupContext(
"write3dmFiles", 0);
15089 __Pyx_XDECREF(__pyx_r);
15090 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_write3dmFiles(__pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 360, __pyx_L1_error)
15091 __Pyx_GOTREF(__pyx_t_1);
15092 __pyx_r = __pyx_t_1;
15098 __Pyx_XDECREF(__pyx_t_1);
15099 __Pyx_AddTraceback(
"cmeshTools.write3dmFiles", __pyx_clineno, __pyx_lineno, __pyx_filename);
15102 __Pyx_XGIVEREF(__pyx_r);
15103 __Pyx_RefNannyFinishContext();
15115 static PyObject *__pyx_pw_10cmeshTools_23write2dmFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15116 static void __pyx_f_10cmeshTools_write2dmFiles(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base, CYTHON_UNUSED
int __pyx_skip_dispatch) {
15117 CYTHON_UNUSED
int __pyx_v_failed;
15118 __Pyx_RefNannyDeclarations
15119 PyObject *__pyx_t_1 = NULL;
15120 char const *__pyx_t_2;
15121 __Pyx_RefNannySetupContext(
"write2dmFiles", 0);
15130 if (unlikely(__pyx_v_filebase == Py_None)) {
15131 PyErr_Format(PyExc_AttributeError,
"'NoneType' object has no attribute '%.30s'",
"encode");
15132 __PYX_ERR(1, 370, __pyx_L1_error)
15134 __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_filebase);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 370, __pyx_L1_error)
15135 __Pyx_GOTREF(__pyx_t_1);
15136 __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1);
if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 370, __pyx_L1_error)
15137 __pyx_v_failed =
write2dmMesh(__pyx_v_cmesh->mesh, __pyx_t_2, __pyx_v_base);
15138 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15151 __Pyx_XDECREF(__pyx_t_1);
15152 __Pyx_WriteUnraisable(
"cmeshTools.write2dmFiles", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
15154 __Pyx_RefNannyFinishContext();
15158 static PyObject *__pyx_pw_10cmeshTools_23write2dmFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15159 static PyObject *__pyx_pw_10cmeshTools_23write2dmFiles(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15160 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh = 0;
15161 PyObject *__pyx_v_filebase = 0;
15163 PyObject *__pyx_r = 0;
15164 __Pyx_RefNannyDeclarations
15165 __Pyx_RefNannySetupContext(
"write2dmFiles (wrapper)", 0);
15167 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cmesh,&__pyx_n_s_filebase,&__pyx_n_s_base,0};
15168 PyObject* values[3] = {0,0,0};
15169 if (unlikely(__pyx_kwds)) {
15170 Py_ssize_t kw_args;
15171 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15172 switch (pos_args) {
15173 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15174 CYTHON_FALLTHROUGH;
15175 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15176 CYTHON_FALLTHROUGH;
15177 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15178 CYTHON_FALLTHROUGH;
15180 default:
goto __pyx_L5_argtuple_error;
15182 kw_args = PyDict_Size(__pyx_kwds);
15183 switch (pos_args) {
15185 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmesh)) != 0)) kw_args--;
15186 else goto __pyx_L5_argtuple_error;
15187 CYTHON_FALLTHROUGH;
15189 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filebase)) != 0)) kw_args--;
15191 __Pyx_RaiseArgtupleInvalid(
"write2dmFiles", 1, 3, 3, 1); __PYX_ERR(1, 366, __pyx_L3_error)
15193 CYTHON_FALLTHROUGH;
15195 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_base)) != 0)) kw_args--;
15197 __Pyx_RaiseArgtupleInvalid(
"write2dmFiles", 1, 3, 3, 2); __PYX_ERR(1, 366, __pyx_L3_error)
15200 if (unlikely(kw_args > 0)) {
15201 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"write2dmFiles") < 0)) __PYX_ERR(1, 366, __pyx_L3_error)
15203 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
15204 goto __pyx_L5_argtuple_error;
15206 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15207 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15208 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15210 __pyx_v_cmesh = ((
struct __pyx_obj_10cmeshTools_CMesh *)values[0]);
15211 __pyx_v_filebase = ((PyObject*)values[1]);
15212 __pyx_v_base = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_base == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 368, __pyx_L3_error)
15214 goto __pyx_L4_argument_unpacking_done;
15215 __pyx_L5_argtuple_error:;
15216 __Pyx_RaiseArgtupleInvalid(
"write2dmFiles", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 366, __pyx_L3_error)
15218 __Pyx_AddTraceback(
"cmeshTools.write2dmFiles", __pyx_clineno, __pyx_lineno, __pyx_filename);
15219 __Pyx_RefNannyFinishContext();
15221 __pyx_L4_argument_unpacking_done:;
15222 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 366, __pyx_L1_error)
15223 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_filebase), (&PyUnicode_Type), 1,
"filebase", 1))) __PYX_ERR(1, 367, __pyx_L1_error)
15224 __pyx_r = __pyx_pf_10cmeshTools_22write2dmFiles(__pyx_self, __pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base);
15231 __Pyx_RefNannyFinishContext();
15235 static PyObject *__pyx_pf_10cmeshTools_22write2dmFiles(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base) {
15236 PyObject *__pyx_r = NULL;
15237 __Pyx_RefNannyDeclarations
15238 PyObject *__pyx_t_1 = NULL;
15239 __Pyx_RefNannySetupContext(
"write2dmFiles", 0);
15240 __Pyx_XDECREF(__pyx_r);
15241 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_write2dmFiles(__pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 366, __pyx_L1_error)
15242 __Pyx_GOTREF(__pyx_t_1);
15243 __pyx_r = __pyx_t_1;
15249 __Pyx_XDECREF(__pyx_t_1);
15250 __Pyx_AddTraceback(
"cmeshTools.write2dmFiles", __pyx_clineno, __pyx_lineno, __pyx_filename);
15253 __Pyx_XGIVEREF(__pyx_r);
15254 __Pyx_RefNannyFinishContext();
15266 static PyObject *__pyx_pw_10cmeshTools_25generateFromHexFile(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15267 static void __pyx_f_10cmeshTools_generateFromHexFile(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base, CYTHON_UNUSED
int __pyx_skip_dispatch) {
15268 CYTHON_UNUSED
int __pyx_v_failed;
15269 __Pyx_RefNannyDeclarations
15270 PyObject *__pyx_t_1 = NULL;
15271 char const *__pyx_t_2;
15272 __Pyx_RefNannySetupContext(
"generateFromHexFile", 0);
15281 if (unlikely(__pyx_v_filebase == Py_None)) {
15282 PyErr_Format(PyExc_AttributeError,
"'NoneType' object has no attribute '%.30s'",
"encode");
15283 __PYX_ERR(1, 376, __pyx_L1_error)
15285 __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_filebase);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 376, __pyx_L1_error)
15286 __Pyx_GOTREF(__pyx_t_1);
15287 __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1);
if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 376, __pyx_L1_error)
15288 __pyx_v_failed =
readHex(__pyx_v_cmesh->mesh, __pyx_t_2, __pyx_v_base);
15289 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15311 __Pyx_XDECREF(__pyx_t_1);
15312 __Pyx_WriteUnraisable(
"cmeshTools.generateFromHexFile", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
15314 __Pyx_RefNannyFinishContext();
15318 static PyObject *__pyx_pw_10cmeshTools_25generateFromHexFile(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15319 static PyObject *__pyx_pw_10cmeshTools_25generateFromHexFile(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15320 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh = 0;
15321 PyObject *__pyx_v_filebase = 0;
15323 PyObject *__pyx_r = 0;
15324 __Pyx_RefNannyDeclarations
15325 __Pyx_RefNannySetupContext(
"generateFromHexFile (wrapper)", 0);
15327 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cmesh,&__pyx_n_s_filebase,&__pyx_n_s_base,0};
15328 PyObject* values[3] = {0,0,0};
15329 if (unlikely(__pyx_kwds)) {
15330 Py_ssize_t kw_args;
15331 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15332 switch (pos_args) {
15333 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15334 CYTHON_FALLTHROUGH;
15335 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15336 CYTHON_FALLTHROUGH;
15337 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15338 CYTHON_FALLTHROUGH;
15340 default:
goto __pyx_L5_argtuple_error;
15342 kw_args = PyDict_Size(__pyx_kwds);
15343 switch (pos_args) {
15345 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmesh)) != 0)) kw_args--;
15346 else goto __pyx_L5_argtuple_error;
15347 CYTHON_FALLTHROUGH;
15349 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filebase)) != 0)) kw_args--;
15351 __Pyx_RaiseArgtupleInvalid(
"generateFromHexFile", 1, 3, 3, 1); __PYX_ERR(1, 372, __pyx_L3_error)
15353 CYTHON_FALLTHROUGH;
15355 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_base)) != 0)) kw_args--;
15357 __Pyx_RaiseArgtupleInvalid(
"generateFromHexFile", 1, 3, 3, 2); __PYX_ERR(1, 372, __pyx_L3_error)
15360 if (unlikely(kw_args > 0)) {
15361 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"generateFromHexFile") < 0)) __PYX_ERR(1, 372, __pyx_L3_error)
15363 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
15364 goto __pyx_L5_argtuple_error;
15366 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15367 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15368 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15370 __pyx_v_cmesh = ((
struct __pyx_obj_10cmeshTools_CMesh *)values[0]);
15371 __pyx_v_filebase = ((PyObject*)values[1]);
15372 __pyx_v_base = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_base == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 374, __pyx_L3_error)
15374 goto __pyx_L4_argument_unpacking_done;
15375 __pyx_L5_argtuple_error:;
15376 __Pyx_RaiseArgtupleInvalid(
"generateFromHexFile", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 372, __pyx_L3_error)
15378 __Pyx_AddTraceback(
"cmeshTools.generateFromHexFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
15379 __Pyx_RefNannyFinishContext();
15381 __pyx_L4_argument_unpacking_done:;
15382 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 372, __pyx_L1_error)
15383 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_filebase), (&PyUnicode_Type), 1,
"filebase", 1))) __PYX_ERR(1, 373, __pyx_L1_error)
15384 __pyx_r = __pyx_pf_10cmeshTools_24generateFromHexFile(__pyx_self, __pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base);
15391 __Pyx_RefNannyFinishContext();
15395 static PyObject *__pyx_pf_10cmeshTools_24generateFromHexFile(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base) {
15396 PyObject *__pyx_r = NULL;
15397 __Pyx_RefNannyDeclarations
15398 PyObject *__pyx_t_1 = NULL;
15399 __Pyx_RefNannySetupContext(
"generateFromHexFile", 0);
15400 __Pyx_XDECREF(__pyx_r);
15401 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_generateFromHexFile(__pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 372, __pyx_L1_error)
15402 __Pyx_GOTREF(__pyx_t_1);
15403 __pyx_r = __pyx_t_1;
15409 __Pyx_XDECREF(__pyx_t_1);
15410 __Pyx_AddTraceback(
"cmeshTools.generateFromHexFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
15413 __Pyx_XGIVEREF(__pyx_r);
15414 __Pyx_RefNannyFinishContext();
15426 static PyObject *__pyx_pw_10cmeshTools_27generateFrom3DMFile(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15427 static void __pyx_f_10cmeshTools_generateFrom3DMFile(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base, CYTHON_UNUSED
int __pyx_skip_dispatch) {
15428 CYTHON_UNUSED
int __pyx_v_failed;
15429 __Pyx_RefNannyDeclarations
15430 PyObject *__pyx_t_1 = NULL;
15431 char const *__pyx_t_2;
15432 char const *__pyx_t_3;
15433 __Pyx_RefNannySetupContext(
"generateFrom3DMFile", 0);
15442 if (unlikely(__pyx_v_filebase == Py_None)) {
15443 PyErr_Format(PyExc_AttributeError,
"'NoneType' object has no attribute '%.30s'",
"encode");
15444 __PYX_ERR(1, 383, __pyx_L1_error)
15446 __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_filebase);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 383, __pyx_L1_error)
15447 __Pyx_GOTREF(__pyx_t_1);
15448 __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1);
if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 383, __pyx_L1_error)
15449 __pyx_v_failed =
read3DM(__pyx_v_cmesh->mesh, __pyx_t_2, __pyx_v_base);
15450 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15468 if (unlikely(__pyx_v_filebase == Py_None)) {
15469 PyErr_Format(PyExc_AttributeError,
"'NoneType' object has no attribute '%.30s'",
"encode");
15470 __PYX_ERR(1, 385, __pyx_L1_error)
15472 __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_filebase);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 385, __pyx_L1_error)
15473 __Pyx_GOTREF(__pyx_t_1);
15474 __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_1);
if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(1, 385, __pyx_L1_error)
15475 __pyx_v_failed =
readBC(__pyx_v_cmesh->mesh, __pyx_t_3, __pyx_v_base);
15476 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15489 __Pyx_XDECREF(__pyx_t_1);
15490 __Pyx_WriteUnraisable(
"cmeshTools.generateFrom3DMFile", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
15492 __Pyx_RefNannyFinishContext();
15496 static PyObject *__pyx_pw_10cmeshTools_27generateFrom3DMFile(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15497 static PyObject *__pyx_pw_10cmeshTools_27generateFrom3DMFile(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15498 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh = 0;
15499 PyObject *__pyx_v_filebase = 0;
15501 PyObject *__pyx_r = 0;
15502 __Pyx_RefNannyDeclarations
15503 __Pyx_RefNannySetupContext(
"generateFrom3DMFile (wrapper)", 0);
15505 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cmesh,&__pyx_n_s_filebase,&__pyx_n_s_base,0};
15506 PyObject* values[3] = {0,0,0};
15507 if (unlikely(__pyx_kwds)) {
15508 Py_ssize_t kw_args;
15509 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15510 switch (pos_args) {
15511 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15512 CYTHON_FALLTHROUGH;
15513 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15514 CYTHON_FALLTHROUGH;
15515 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15516 CYTHON_FALLTHROUGH;
15518 default:
goto __pyx_L5_argtuple_error;
15520 kw_args = PyDict_Size(__pyx_kwds);
15521 switch (pos_args) {
15523 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmesh)) != 0)) kw_args--;
15524 else goto __pyx_L5_argtuple_error;
15525 CYTHON_FALLTHROUGH;
15527 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filebase)) != 0)) kw_args--;
15529 __Pyx_RaiseArgtupleInvalid(
"generateFrom3DMFile", 1, 3, 3, 1); __PYX_ERR(1, 379, __pyx_L3_error)
15531 CYTHON_FALLTHROUGH;
15533 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_base)) != 0)) kw_args--;
15535 __Pyx_RaiseArgtupleInvalid(
"generateFrom3DMFile", 1, 3, 3, 2); __PYX_ERR(1, 379, __pyx_L3_error)
15538 if (unlikely(kw_args > 0)) {
15539 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"generateFrom3DMFile") < 0)) __PYX_ERR(1, 379, __pyx_L3_error)
15541 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
15542 goto __pyx_L5_argtuple_error;
15544 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15545 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15546 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15548 __pyx_v_cmesh = ((
struct __pyx_obj_10cmeshTools_CMesh *)values[0]);
15549 __pyx_v_filebase = ((PyObject*)values[1]);
15550 __pyx_v_base = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_base == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 381, __pyx_L3_error)
15552 goto __pyx_L4_argument_unpacking_done;
15553 __pyx_L5_argtuple_error:;
15554 __Pyx_RaiseArgtupleInvalid(
"generateFrom3DMFile", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 379, __pyx_L3_error)
15556 __Pyx_AddTraceback(
"cmeshTools.generateFrom3DMFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
15557 __Pyx_RefNannyFinishContext();
15559 __pyx_L4_argument_unpacking_done:;
15560 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 379, __pyx_L1_error)
15561 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_filebase), (&PyUnicode_Type), 1,
"filebase", 1))) __PYX_ERR(1, 380, __pyx_L1_error)
15562 __pyx_r = __pyx_pf_10cmeshTools_26generateFrom3DMFile(__pyx_self, __pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base);
15569 __Pyx_RefNannyFinishContext();
15573 static PyObject *__pyx_pf_10cmeshTools_26generateFrom3DMFile(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base) {
15574 PyObject *__pyx_r = NULL;
15575 __Pyx_RefNannyDeclarations
15576 PyObject *__pyx_t_1 = NULL;
15577 __Pyx_RefNannySetupContext(
"generateFrom3DMFile", 0);
15578 __Pyx_XDECREF(__pyx_r);
15579 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_generateFrom3DMFile(__pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 379, __pyx_L1_error)
15580 __Pyx_GOTREF(__pyx_t_1);
15581 __pyx_r = __pyx_t_1;
15587 __Pyx_XDECREF(__pyx_t_1);
15588 __Pyx_AddTraceback(
"cmeshTools.generateFrom3DMFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
15591 __Pyx_XGIVEREF(__pyx_r);
15592 __Pyx_RefNannyFinishContext();
15604 static PyObject *__pyx_pw_10cmeshTools_29generateFrom2DMFile(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15605 static void __pyx_f_10cmeshTools_generateFrom2DMFile(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base, CYTHON_UNUSED
int __pyx_skip_dispatch) {
15606 CYTHON_UNUSED
int __pyx_v_failed;
15607 __Pyx_RefNannyDeclarations
15608 PyObject *__pyx_t_1 = NULL;
15609 char const *__pyx_t_2;
15610 char const *__pyx_t_3;
15611 __Pyx_RefNannySetupContext(
"generateFrom2DMFile", 0);
15620 if (unlikely(__pyx_v_filebase == Py_None)) {
15621 PyErr_Format(PyExc_AttributeError,
"'NoneType' object has no attribute '%.30s'",
"encode");
15622 __PYX_ERR(1, 391, __pyx_L1_error)
15624 __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_filebase);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 391, __pyx_L1_error)
15625 __Pyx_GOTREF(__pyx_t_1);
15626 __pyx_t_2 = __Pyx_PyBytes_AsString(__pyx_t_1);
if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 391, __pyx_L1_error)
15627 __pyx_v_failed =
read2DM(__pyx_v_cmesh->mesh, __pyx_t_2, __pyx_v_base);
15628 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15646 if (unlikely(__pyx_v_filebase == Py_None)) {
15647 PyErr_Format(PyExc_AttributeError,
"'NoneType' object has no attribute '%.30s'",
"encode");
15648 __PYX_ERR(1, 393, __pyx_L1_error)
15650 __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_filebase);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 393, __pyx_L1_error)
15651 __Pyx_GOTREF(__pyx_t_1);
15652 __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_t_1);
if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(1, 393, __pyx_L1_error)
15653 __pyx_v_failed =
readBC(__pyx_v_cmesh->mesh, __pyx_t_3, __pyx_v_base);
15654 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
15667 __Pyx_XDECREF(__pyx_t_1);
15668 __Pyx_WriteUnraisable(
"cmeshTools.generateFrom2DMFile", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
15670 __Pyx_RefNannyFinishContext();
15674 static PyObject *__pyx_pw_10cmeshTools_29generateFrom2DMFile(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15675 static PyObject *__pyx_pw_10cmeshTools_29generateFrom2DMFile(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15676 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh = 0;
15677 PyObject *__pyx_v_filebase = 0;
15679 PyObject *__pyx_r = 0;
15680 __Pyx_RefNannyDeclarations
15681 __Pyx_RefNannySetupContext(
"generateFrom2DMFile (wrapper)", 0);
15683 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cmesh,&__pyx_n_s_filebase,&__pyx_n_s_base,0};
15684 PyObject* values[3] = {0,0,0};
15685 if (unlikely(__pyx_kwds)) {
15686 Py_ssize_t kw_args;
15687 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15688 switch (pos_args) {
15689 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15690 CYTHON_FALLTHROUGH;
15691 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15692 CYTHON_FALLTHROUGH;
15693 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15694 CYTHON_FALLTHROUGH;
15696 default:
goto __pyx_L5_argtuple_error;
15698 kw_args = PyDict_Size(__pyx_kwds);
15699 switch (pos_args) {
15701 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmesh)) != 0)) kw_args--;
15702 else goto __pyx_L5_argtuple_error;
15703 CYTHON_FALLTHROUGH;
15705 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filebase)) != 0)) kw_args--;
15707 __Pyx_RaiseArgtupleInvalid(
"generateFrom2DMFile", 1, 3, 3, 1); __PYX_ERR(1, 387, __pyx_L3_error)
15709 CYTHON_FALLTHROUGH;
15711 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_base)) != 0)) kw_args--;
15713 __Pyx_RaiseArgtupleInvalid(
"generateFrom2DMFile", 1, 3, 3, 2); __PYX_ERR(1, 387, __pyx_L3_error)
15716 if (unlikely(kw_args > 0)) {
15717 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"generateFrom2DMFile") < 0)) __PYX_ERR(1, 387, __pyx_L3_error)
15719 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
15720 goto __pyx_L5_argtuple_error;
15722 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15723 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15724 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15726 __pyx_v_cmesh = ((
struct __pyx_obj_10cmeshTools_CMesh *)values[0]);
15727 __pyx_v_filebase = ((PyObject*)values[1]);
15728 __pyx_v_base = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_base == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 389, __pyx_L3_error)
15730 goto __pyx_L4_argument_unpacking_done;
15731 __pyx_L5_argtuple_error:;
15732 __Pyx_RaiseArgtupleInvalid(
"generateFrom2DMFile", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 387, __pyx_L3_error)
15734 __Pyx_AddTraceback(
"cmeshTools.generateFrom2DMFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
15735 __Pyx_RefNannyFinishContext();
15737 __pyx_L4_argument_unpacking_done:;
15738 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 387, __pyx_L1_error)
15739 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_filebase), (&PyUnicode_Type), 1,
"filebase", 1))) __PYX_ERR(1, 388, __pyx_L1_error)
15740 __pyx_r = __pyx_pf_10cmeshTools_28generateFrom2DMFile(__pyx_self, __pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base);
15747 __Pyx_RefNannyFinishContext();
15751 static PyObject *__pyx_pf_10cmeshTools_28generateFrom2DMFile(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, PyObject *__pyx_v_filebase,
int __pyx_v_base) {
15752 PyObject *__pyx_r = NULL;
15753 __Pyx_RefNannyDeclarations
15754 PyObject *__pyx_t_1 = NULL;
15755 __Pyx_RefNannySetupContext(
"generateFrom2DMFile", 0);
15756 __Pyx_XDECREF(__pyx_r);
15757 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_generateFrom2DMFile(__pyx_v_cmesh, __pyx_v_filebase, __pyx_v_base, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 387, __pyx_L1_error)
15758 __Pyx_GOTREF(__pyx_t_1);
15759 __pyx_r = __pyx_t_1;
15765 __Pyx_XDECREF(__pyx_t_1);
15766 __Pyx_AddTraceback(
"cmeshTools.generateFrom2DMFile", __pyx_clineno, __pyx_lineno, __pyx_filename);
15769 __Pyx_XGIVEREF(__pyx_r);
15770 __Pyx_RefNannyFinishContext();
15782 static PyObject *__pyx_pw_10cmeshTools_31computeGeometricInfo_tetrahedron(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
15783 static void __pyx_f_10cmeshTools_computeGeometricInfo_tetrahedron(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
15784 __Pyx_RefNannyDeclarations
15785 __Pyx_RefNannySetupContext(
"computeGeometricInfo_tetrahedron", 0);
15805 __Pyx_RefNannyFinishContext();
15809 static PyObject *__pyx_pw_10cmeshTools_31computeGeometricInfo_tetrahedron(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
15810 static PyObject *__pyx_pw_10cmeshTools_31computeGeometricInfo_tetrahedron(PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
15811 PyObject *__pyx_r = 0;
15812 __Pyx_RefNannyDeclarations
15813 __Pyx_RefNannySetupContext(
"computeGeometricInfo_tetrahedron (wrapper)", 0);
15814 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 395, __pyx_L1_error)
15815 __pyx_r = __pyx_pf_10cmeshTools_30computeGeometricInfo_tetrahedron(__pyx_self, ((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_cmesh));
15822 __Pyx_RefNannyFinishContext();
15826 static PyObject *__pyx_pf_10cmeshTools_30computeGeometricInfo_tetrahedron(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
15827 PyObject *__pyx_r = NULL;
15828 __Pyx_RefNannyDeclarations
15829 PyObject *__pyx_t_1 = NULL;
15830 __Pyx_RefNannySetupContext(
"computeGeometricInfo_tetrahedron", 0);
15831 __Pyx_XDECREF(__pyx_r);
15832 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_computeGeometricInfo_tetrahedron(__pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 395, __pyx_L1_error)
15833 __Pyx_GOTREF(__pyx_t_1);
15834 __pyx_r = __pyx_t_1;
15840 __Pyx_XDECREF(__pyx_t_1);
15841 __Pyx_AddTraceback(
"cmeshTools.computeGeometricInfo_tetrahedron", __pyx_clineno, __pyx_lineno, __pyx_filename);
15844 __Pyx_XGIVEREF(__pyx_r);
15845 __Pyx_RefNannyFinishContext();
15857 static PyObject *__pyx_pw_10cmeshTools_33allocateGeometricInfo_tetrahedron(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
15858 static void __pyx_f_10cmeshTools_allocateGeometricInfo_tetrahedron(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
15859 __Pyx_RefNannyDeclarations
15860 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_tetrahedron", 0);
15880 __Pyx_RefNannyFinishContext();
15884 static PyObject *__pyx_pw_10cmeshTools_33allocateGeometricInfo_tetrahedron(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
15885 static PyObject *__pyx_pw_10cmeshTools_33allocateGeometricInfo_tetrahedron(PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
15886 PyObject *__pyx_r = 0;
15887 __Pyx_RefNannyDeclarations
15888 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_tetrahedron (wrapper)", 0);
15889 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 398, __pyx_L1_error)
15890 __pyx_r = __pyx_pf_10cmeshTools_32allocateGeometricInfo_tetrahedron(__pyx_self, ((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_cmesh));
15897 __Pyx_RefNannyFinishContext();
15901 static PyObject *__pyx_pf_10cmeshTools_32allocateGeometricInfo_tetrahedron(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
15902 PyObject *__pyx_r = NULL;
15903 __Pyx_RefNannyDeclarations
15904 PyObject *__pyx_t_1 = NULL;
15905 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_tetrahedron", 0);
15906 __Pyx_XDECREF(__pyx_r);
15907 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_allocateGeometricInfo_tetrahedron(__pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 398, __pyx_L1_error)
15908 __Pyx_GOTREF(__pyx_t_1);
15909 __pyx_r = __pyx_t_1;
15915 __Pyx_XDECREF(__pyx_t_1);
15916 __Pyx_AddTraceback(
"cmeshTools.allocateGeometricInfo_tetrahedron", __pyx_clineno, __pyx_lineno, __pyx_filename);
15919 __Pyx_XGIVEREF(__pyx_r);
15920 __Pyx_RefNannyFinishContext();
15932 static PyObject *__pyx_pw_10cmeshTools_35allocateNodeAndElementNodeDataStructures(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15933 static void __pyx_f_10cmeshTools_allocateNodeAndElementNodeDataStructures(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh,
int __pyx_v_nElements_global,
int __pyx_v_nNodes_global,
int __pyx_v_nNodes_element, CYTHON_UNUSED
int __pyx_skip_dispatch) {
15934 __Pyx_RefNannyDeclarations
15935 __Pyx_RefNannySetupContext(
"allocateNodeAndElementNodeDataStructures", 0);
15955 __Pyx_RefNannyFinishContext();
15959 static PyObject *__pyx_pw_10cmeshTools_35allocateNodeAndElementNodeDataStructures(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
15960 static PyObject *__pyx_pw_10cmeshTools_35allocateNodeAndElementNodeDataStructures(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
15961 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh = 0;
15962 int __pyx_v_nElements_global;
15963 int __pyx_v_nNodes_global;
15964 int __pyx_v_nNodes_element;
15965 PyObject *__pyx_r = 0;
15966 __Pyx_RefNannyDeclarations
15967 __Pyx_RefNannySetupContext(
"allocateNodeAndElementNodeDataStructures (wrapper)", 0);
15969 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cmesh,&__pyx_n_s_nElements_global,&__pyx_n_s_nNodes_global,&__pyx_n_s_nNodes_element,0};
15970 PyObject* values[4] = {0,0,0,0};
15971 if (unlikely(__pyx_kwds)) {
15972 Py_ssize_t kw_args;
15973 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
15974 switch (pos_args) {
15975 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
15976 CYTHON_FALLTHROUGH;
15977 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
15978 CYTHON_FALLTHROUGH;
15979 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
15980 CYTHON_FALLTHROUGH;
15981 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
15982 CYTHON_FALLTHROUGH;
15984 default:
goto __pyx_L5_argtuple_error;
15986 kw_args = PyDict_Size(__pyx_kwds);
15987 switch (pos_args) {
15989 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmesh)) != 0)) kw_args--;
15990 else goto __pyx_L5_argtuple_error;
15991 CYTHON_FALLTHROUGH;
15993 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nElements_global)) != 0)) kw_args--;
15995 __Pyx_RaiseArgtupleInvalid(
"allocateNodeAndElementNodeDataStructures", 1, 4, 4, 1); __PYX_ERR(1, 401, __pyx_L3_error)
15997 CYTHON_FALLTHROUGH;
15999 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nNodes_global)) != 0)) kw_args--;
16001 __Pyx_RaiseArgtupleInvalid(
"allocateNodeAndElementNodeDataStructures", 1, 4, 4, 2); __PYX_ERR(1, 401, __pyx_L3_error)
16003 CYTHON_FALLTHROUGH;
16005 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nNodes_element)) != 0)) kw_args--;
16007 __Pyx_RaiseArgtupleInvalid(
"allocateNodeAndElementNodeDataStructures", 1, 4, 4, 3); __PYX_ERR(1, 401, __pyx_L3_error)
16010 if (unlikely(kw_args > 0)) {
16011 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"allocateNodeAndElementNodeDataStructures") < 0)) __PYX_ERR(1, 401, __pyx_L3_error)
16013 }
else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
16014 goto __pyx_L5_argtuple_error;
16016 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16017 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16018 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16019 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16021 __pyx_v_cmesh = ((
struct __pyx_obj_10cmeshTools_CMesh *)values[0]);
16022 __pyx_v_nElements_global = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_nElements_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 402, __pyx_L3_error)
16023 __pyx_v_nNodes_global = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nNodes_global == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 403, __pyx_L3_error)
16024 __pyx_v_nNodes_element = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_nNodes_element == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 404, __pyx_L3_error)
16026 goto __pyx_L4_argument_unpacking_done;
16027 __pyx_L5_argtuple_error:;
16028 __Pyx_RaiseArgtupleInvalid(
"allocateNodeAndElementNodeDataStructures", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 401, __pyx_L3_error)
16030 __Pyx_AddTraceback(
"cmeshTools.allocateNodeAndElementNodeDataStructures", __pyx_clineno, __pyx_lineno, __pyx_filename);
16031 __Pyx_RefNannyFinishContext();
16033 __pyx_L4_argument_unpacking_done:;
16034 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 401, __pyx_L1_error)
16035 __pyx_r = __pyx_pf_10cmeshTools_34allocateNodeAndElementNodeDataStructures(__pyx_self, __pyx_v_cmesh, __pyx_v_nElements_global, __pyx_v_nNodes_global, __pyx_v_nNodes_element);
16042 __Pyx_RefNannyFinishContext();
16046 static PyObject *__pyx_pf_10cmeshTools_34allocateNodeAndElementNodeDataStructures(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh,
int __pyx_v_nElements_global,
int __pyx_v_nNodes_global,
int __pyx_v_nNodes_element) {
16047 PyObject *__pyx_r = NULL;
16048 __Pyx_RefNannyDeclarations
16049 PyObject *__pyx_t_1 = NULL;
16050 __Pyx_RefNannySetupContext(
"allocateNodeAndElementNodeDataStructures", 0);
16051 __Pyx_XDECREF(__pyx_r);
16052 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_allocateNodeAndElementNodeDataStructures(__pyx_v_cmesh, __pyx_v_nElements_global, __pyx_v_nNodes_global, __pyx_v_nNodes_element, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 401, __pyx_L1_error)
16053 __Pyx_GOTREF(__pyx_t_1);
16054 __pyx_r = __pyx_t_1;
16060 __Pyx_XDECREF(__pyx_t_1);
16061 __Pyx_AddTraceback(
"cmeshTools.allocateNodeAndElementNodeDataStructures", __pyx_clineno, __pyx_lineno, __pyx_filename);
16064 __Pyx_XGIVEREF(__pyx_r);
16065 __Pyx_RefNannyFinishContext();
16077 static PyObject *__pyx_pw_10cmeshTools_37constructElementBoundaryElementsArray(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
16078 static void __pyx_f_10cmeshTools_constructElementBoundaryElementsArray(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
16079 __Pyx_RefNannyDeclarations
16080 __Pyx_RefNannySetupContext(
"constructElementBoundaryElementsArray", 0);
16089 switch (__pyx_v_cmesh->mesh.nNodes_element) {
16150 __Pyx_RefNannyFinishContext();
16154 static PyObject *__pyx_pw_10cmeshTools_37constructElementBoundaryElementsArray(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
16155 static PyObject *__pyx_pw_10cmeshTools_37constructElementBoundaryElementsArray(PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
16156 PyObject *__pyx_r = 0;
16157 __Pyx_RefNannyDeclarations
16158 __Pyx_RefNannySetupContext(
"constructElementBoundaryElementsArray (wrapper)", 0);
16159 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 407, __pyx_L1_error)
16160 __pyx_r = __pyx_pf_10cmeshTools_36constructElementBoundaryElementsArray(__pyx_self, ((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_cmesh));
16167 __Pyx_RefNannyFinishContext();
16171 static PyObject *__pyx_pf_10cmeshTools_36constructElementBoundaryElementsArray(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
16172 PyObject *__pyx_r = NULL;
16173 __Pyx_RefNannyDeclarations
16174 PyObject *__pyx_t_1 = NULL;
16175 __Pyx_RefNannySetupContext(
"constructElementBoundaryElementsArray", 0);
16176 __Pyx_XDECREF(__pyx_r);
16177 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_constructElementBoundaryElementsArray(__pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 407, __pyx_L1_error)
16178 __Pyx_GOTREF(__pyx_t_1);
16179 __pyx_r = __pyx_t_1;
16185 __Pyx_XDECREF(__pyx_t_1);
16186 __Pyx_AddTraceback(
"cmeshTools.constructElementBoundaryElementsArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
16189 __Pyx_XGIVEREF(__pyx_r);
16190 __Pyx_RefNannyFinishContext();
16202 static PyObject *__pyx_pw_10cmeshTools_39generateTriangularMeshFromRectangularGrid(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16203 static void __pyx_f_10cmeshTools_generateTriangularMeshFromRectangularGrid(
int __pyx_v_nx,
int __pyx_v_ny,
double __pyx_v_Lx,
double __pyx_v_Ly,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh,
int __pyx_v_triangleFlag, CYTHON_UNUSED
int __pyx_skip_dispatch) {
16204 __Pyx_RefNannyDeclarations
16205 __Pyx_RefNannySetupContext(
"generateTriangularMeshFromRectangularGrid", 0);
16252 __Pyx_RefNannyFinishContext();
16256 static PyObject *__pyx_pw_10cmeshTools_39generateTriangularMeshFromRectangularGrid(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16257 static PyObject *__pyx_pw_10cmeshTools_39generateTriangularMeshFromRectangularGrid(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16262 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh = 0;
16263 int __pyx_v_triangleFlag;
16264 PyObject *__pyx_r = 0;
16265 __Pyx_RefNannyDeclarations
16266 __Pyx_RefNannySetupContext(
"generateTriangularMeshFromRectangularGrid (wrapper)", 0);
16268 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nx,&__pyx_n_s_ny,&__pyx_n_s_Lx,&__pyx_n_s_Ly,&__pyx_n_s_cmesh,&__pyx_n_s_triangleFlag,0};
16269 PyObject* values[6] = {0,0,0,0,0,0};
16270 if (unlikely(__pyx_kwds)) {
16271 Py_ssize_t kw_args;
16272 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16273 switch (pos_args) {
16274 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16275 CYTHON_FALLTHROUGH;
16276 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16277 CYTHON_FALLTHROUGH;
16278 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16279 CYTHON_FALLTHROUGH;
16280 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16281 CYTHON_FALLTHROUGH;
16282 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16283 CYTHON_FALLTHROUGH;
16284 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16285 CYTHON_FALLTHROUGH;
16287 default:
goto __pyx_L5_argtuple_error;
16289 kw_args = PyDict_Size(__pyx_kwds);
16290 switch (pos_args) {
16292 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nx)) != 0)) kw_args--;
16293 else goto __pyx_L5_argtuple_error;
16294 CYTHON_FALLTHROUGH;
16296 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ny)) != 0)) kw_args--;
16298 __Pyx_RaiseArgtupleInvalid(
"generateTriangularMeshFromRectangularGrid", 1, 6, 6, 1); __PYX_ERR(1, 415, __pyx_L3_error)
16300 CYTHON_FALLTHROUGH;
16302 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lx)) != 0)) kw_args--;
16304 __Pyx_RaiseArgtupleInvalid(
"generateTriangularMeshFromRectangularGrid", 1, 6, 6, 2); __PYX_ERR(1, 415, __pyx_L3_error)
16306 CYTHON_FALLTHROUGH;
16308 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Ly)) != 0)) kw_args--;
16310 __Pyx_RaiseArgtupleInvalid(
"generateTriangularMeshFromRectangularGrid", 1, 6, 6, 3); __PYX_ERR(1, 415, __pyx_L3_error)
16312 CYTHON_FALLTHROUGH;
16314 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmesh)) != 0)) kw_args--;
16316 __Pyx_RaiseArgtupleInvalid(
"generateTriangularMeshFromRectangularGrid", 1, 6, 6, 4); __PYX_ERR(1, 415, __pyx_L3_error)
16318 CYTHON_FALLTHROUGH;
16320 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_triangleFlag)) != 0)) kw_args--;
16322 __Pyx_RaiseArgtupleInvalid(
"generateTriangularMeshFromRectangularGrid", 1, 6, 6, 5); __PYX_ERR(1, 415, __pyx_L3_error)
16325 if (unlikely(kw_args > 0)) {
16326 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"generateTriangularMeshFromRectangularGrid") < 0)) __PYX_ERR(1, 415, __pyx_L3_error)
16328 }
else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
16329 goto __pyx_L5_argtuple_error;
16331 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16332 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16333 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16334 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16335 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16336 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16338 __pyx_v_nx = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nx == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 415, __pyx_L3_error)
16339 __pyx_v_ny = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_ny == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 416, __pyx_L3_error)
16340 __pyx_v_Lx = __pyx_PyFloat_AsDouble(values[2]);
if (unlikely((__pyx_v_Lx == (
double)-1) && PyErr_Occurred())) __PYX_ERR(1, 417, __pyx_L3_error)
16341 __pyx_v_Ly = __pyx_PyFloat_AsDouble(values[3]);
if (unlikely((__pyx_v_Ly == (
double)-1) && PyErr_Occurred())) __PYX_ERR(1, 418, __pyx_L3_error)
16342 __pyx_v_cmesh = ((
struct __pyx_obj_10cmeshTools_CMesh *)values[4]);
16343 __pyx_v_triangleFlag = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_triangleFlag == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 420, __pyx_L3_error)
16345 goto __pyx_L4_argument_unpacking_done;
16346 __pyx_L5_argtuple_error:;
16347 __Pyx_RaiseArgtupleInvalid(
"generateTriangularMeshFromRectangularGrid", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 415, __pyx_L3_error)
16349 __Pyx_AddTraceback(
"cmeshTools.generateTriangularMeshFromRectangularGrid", __pyx_clineno, __pyx_lineno, __pyx_filename);
16350 __Pyx_RefNannyFinishContext();
16352 __pyx_L4_argument_unpacking_done:;
16353 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 419, __pyx_L1_error)
16354 __pyx_r = __pyx_pf_10cmeshTools_38generateTriangularMeshFromRectangularGrid(__pyx_self, __pyx_v_nx, __pyx_v_ny, __pyx_v_Lx, __pyx_v_Ly, __pyx_v_cmesh, __pyx_v_triangleFlag);
16361 __Pyx_RefNannyFinishContext();
16365 static PyObject *__pyx_pf_10cmeshTools_38generateTriangularMeshFromRectangularGrid(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nx,
int __pyx_v_ny,
double __pyx_v_Lx,
double __pyx_v_Ly,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh,
int __pyx_v_triangleFlag) {
16366 PyObject *__pyx_r = NULL;
16367 __Pyx_RefNannyDeclarations
16368 PyObject *__pyx_t_1 = NULL;
16369 __Pyx_RefNannySetupContext(
"generateTriangularMeshFromRectangularGrid", 0);
16370 __Pyx_XDECREF(__pyx_r);
16371 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_generateTriangularMeshFromRectangularGrid(__pyx_v_nx, __pyx_v_ny, __pyx_v_Lx, __pyx_v_Ly, __pyx_v_cmesh, __pyx_v_triangleFlag, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 415, __pyx_L1_error)
16372 __Pyx_GOTREF(__pyx_t_1);
16373 __pyx_r = __pyx_t_1;
16379 __Pyx_XDECREF(__pyx_t_1);
16380 __Pyx_AddTraceback(
"cmeshTools.generateTriangularMeshFromRectangularGrid", __pyx_clineno, __pyx_lineno, __pyx_filename);
16383 __Pyx_XGIVEREF(__pyx_r);
16384 __Pyx_RefNannyFinishContext();
16396 static PyObject *__pyx_pw_10cmeshTools_41generateHexahedralMeshFromRectangularGrid(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16397 static void __pyx_f_10cmeshTools_generateHexahedralMeshFromRectangularGrid(
int __pyx_v_nx,
int __pyx_v_ny,
int __pyx_v_nz,
int __pyx_v_px,
int __pyx_v_py,
int __pyx_v_pz,
double __pyx_v_Lx,
double __pyx_v_Ly,
double __pyx_v_Lz,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
16398 __Pyx_RefNannyDeclarations
16399 __Pyx_RefNannySetupContext(
"generateHexahedralMeshFromRectangularGrid", 0);
16417 (void)(
regularMeshNodes(__pyx_v_nx, __pyx_v_ny, __pyx_v_nz, __pyx_v_Lx, __pyx_v_Ly, __pyx_v_Lz, __pyx_v_cmesh->mesh));
16446 __Pyx_RefNannyFinishContext();
16450 static PyObject *__pyx_pw_10cmeshTools_41generateHexahedralMeshFromRectangularGrid(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16451 static PyObject *__pyx_pw_10cmeshTools_41generateHexahedralMeshFromRectangularGrid(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16461 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh = 0;
16462 PyObject *__pyx_r = 0;
16463 __Pyx_RefNannyDeclarations
16464 __Pyx_RefNannySetupContext(
"generateHexahedralMeshFromRectangularGrid (wrapper)", 0);
16466 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nx,&__pyx_n_s_ny,&__pyx_n_s_nz,&__pyx_n_s_px,&__pyx_n_s_py,&__pyx_n_s_pz,&__pyx_n_s_Lx,&__pyx_n_s_Ly,&__pyx_n_s_Lz,&__pyx_n_s_cmesh,0};
16467 PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
16468 if (unlikely(__pyx_kwds)) {
16469 Py_ssize_t kw_args;
16470 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16471 switch (pos_args) {
16472 case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16473 CYTHON_FALLTHROUGH;
16474 case 9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16475 CYTHON_FALLTHROUGH;
16476 case 8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16477 CYTHON_FALLTHROUGH;
16478 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16479 CYTHON_FALLTHROUGH;
16480 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16481 CYTHON_FALLTHROUGH;
16482 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16483 CYTHON_FALLTHROUGH;
16484 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16485 CYTHON_FALLTHROUGH;
16486 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16487 CYTHON_FALLTHROUGH;
16488 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16489 CYTHON_FALLTHROUGH;
16490 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16491 CYTHON_FALLTHROUGH;
16493 default:
goto __pyx_L5_argtuple_error;
16495 kw_args = PyDict_Size(__pyx_kwds);
16496 switch (pos_args) {
16498 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nx)) != 0)) kw_args--;
16499 else goto __pyx_L5_argtuple_error;
16500 CYTHON_FALLTHROUGH;
16502 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ny)) != 0)) kw_args--;
16504 __Pyx_RaiseArgtupleInvalid(
"generateHexahedralMeshFromRectangularGrid", 1, 10, 10, 1); __PYX_ERR(1, 426, __pyx_L3_error)
16506 CYTHON_FALLTHROUGH;
16508 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nz)) != 0)) kw_args--;
16510 __Pyx_RaiseArgtupleInvalid(
"generateHexahedralMeshFromRectangularGrid", 1, 10, 10, 2); __PYX_ERR(1, 426, __pyx_L3_error)
16512 CYTHON_FALLTHROUGH;
16514 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_px)) != 0)) kw_args--;
16516 __Pyx_RaiseArgtupleInvalid(
"generateHexahedralMeshFromRectangularGrid", 1, 10, 10, 3); __PYX_ERR(1, 426, __pyx_L3_error)
16518 CYTHON_FALLTHROUGH;
16520 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_py)) != 0)) kw_args--;
16522 __Pyx_RaiseArgtupleInvalid(
"generateHexahedralMeshFromRectangularGrid", 1, 10, 10, 4); __PYX_ERR(1, 426, __pyx_L3_error)
16524 CYTHON_FALLTHROUGH;
16526 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pz)) != 0)) kw_args--;
16528 __Pyx_RaiseArgtupleInvalid(
"generateHexahedralMeshFromRectangularGrid", 1, 10, 10, 5); __PYX_ERR(1, 426, __pyx_L3_error)
16530 CYTHON_FALLTHROUGH;
16532 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lx)) != 0)) kw_args--;
16534 __Pyx_RaiseArgtupleInvalid(
"generateHexahedralMeshFromRectangularGrid", 1, 10, 10, 6); __PYX_ERR(1, 426, __pyx_L3_error)
16536 CYTHON_FALLTHROUGH;
16538 if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Ly)) != 0)) kw_args--;
16540 __Pyx_RaiseArgtupleInvalid(
"generateHexahedralMeshFromRectangularGrid", 1, 10, 10, 7); __PYX_ERR(1, 426, __pyx_L3_error)
16542 CYTHON_FALLTHROUGH;
16544 if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lz)) != 0)) kw_args--;
16546 __Pyx_RaiseArgtupleInvalid(
"generateHexahedralMeshFromRectangularGrid", 1, 10, 10, 8); __PYX_ERR(1, 426, __pyx_L3_error)
16548 CYTHON_FALLTHROUGH;
16550 if (likely((values[9] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmesh)) != 0)) kw_args--;
16552 __Pyx_RaiseArgtupleInvalid(
"generateHexahedralMeshFromRectangularGrid", 1, 10, 10, 9); __PYX_ERR(1, 426, __pyx_L3_error)
16555 if (unlikely(kw_args > 0)) {
16556 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"generateHexahedralMeshFromRectangularGrid") < 0)) __PYX_ERR(1, 426, __pyx_L3_error)
16558 }
else if (PyTuple_GET_SIZE(__pyx_args) != 10) {
16559 goto __pyx_L5_argtuple_error;
16561 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16562 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16563 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16564 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16565 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16566 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16567 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16568 values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
16569 values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
16570 values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
16572 __pyx_v_nx = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nx == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 426, __pyx_L3_error)
16573 __pyx_v_ny = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_ny == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 427, __pyx_L3_error)
16574 __pyx_v_nz = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_nz == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 428, __pyx_L3_error)
16575 __pyx_v_px = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_px == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 429, __pyx_L3_error)
16576 __pyx_v_py = __Pyx_PyInt_As_int(values[4]);
if (unlikely((__pyx_v_py == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 430, __pyx_L3_error)
16577 __pyx_v_pz = __Pyx_PyInt_As_int(values[5]);
if (unlikely((__pyx_v_pz == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 431, __pyx_L3_error)
16578 __pyx_v_Lx = __pyx_PyFloat_AsDouble(values[6]);
if (unlikely((__pyx_v_Lx == (
double)-1) && PyErr_Occurred())) __PYX_ERR(1, 432, __pyx_L3_error)
16579 __pyx_v_Ly = __pyx_PyFloat_AsDouble(values[7]);
if (unlikely((__pyx_v_Ly == (
double)-1) && PyErr_Occurred())) __PYX_ERR(1, 433, __pyx_L3_error)
16580 __pyx_v_Lz = __pyx_PyFloat_AsDouble(values[8]);
if (unlikely((__pyx_v_Lz == (
double)-1) && PyErr_Occurred())) __PYX_ERR(1, 434, __pyx_L3_error)
16581 __pyx_v_cmesh = ((
struct __pyx_obj_10cmeshTools_CMesh *)values[9]);
16583 goto __pyx_L4_argument_unpacking_done;
16584 __pyx_L5_argtuple_error:;
16585 __Pyx_RaiseArgtupleInvalid(
"generateHexahedralMeshFromRectangularGrid", 1, 10, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 426, __pyx_L3_error)
16587 __Pyx_AddTraceback(
"cmeshTools.generateHexahedralMeshFromRectangularGrid", __pyx_clineno, __pyx_lineno, __pyx_filename);
16588 __Pyx_RefNannyFinishContext();
16590 __pyx_L4_argument_unpacking_done:;
16591 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 435, __pyx_L1_error)
16592 __pyx_r = __pyx_pf_10cmeshTools_40generateHexahedralMeshFromRectangularGrid(__pyx_self, __pyx_v_nx, __pyx_v_ny, __pyx_v_nz, __pyx_v_px, __pyx_v_py, __pyx_v_pz, __pyx_v_Lx, __pyx_v_Ly, __pyx_v_Lz, __pyx_v_cmesh);
16599 __Pyx_RefNannyFinishContext();
16603 static PyObject *__pyx_pf_10cmeshTools_40generateHexahedralMeshFromRectangularGrid(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nx,
int __pyx_v_ny,
int __pyx_v_nz,
int __pyx_v_px,
int __pyx_v_py,
int __pyx_v_pz,
double __pyx_v_Lx,
double __pyx_v_Ly,
double __pyx_v_Lz,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
16604 PyObject *__pyx_r = NULL;
16605 __Pyx_RefNannyDeclarations
16606 PyObject *__pyx_t_1 = NULL;
16607 __Pyx_RefNannySetupContext(
"generateHexahedralMeshFromRectangularGrid", 0);
16608 __Pyx_XDECREF(__pyx_r);
16609 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_generateHexahedralMeshFromRectangularGrid(__pyx_v_nx, __pyx_v_ny, __pyx_v_nz, __pyx_v_px, __pyx_v_py, __pyx_v_pz, __pyx_v_Lx, __pyx_v_Ly, __pyx_v_Lz, __pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 426, __pyx_L1_error)
16610 __Pyx_GOTREF(__pyx_t_1);
16611 __pyx_r = __pyx_t_1;
16617 __Pyx_XDECREF(__pyx_t_1);
16618 __Pyx_AddTraceback(
"cmeshTools.generateHexahedralMeshFromRectangularGrid", __pyx_clineno, __pyx_lineno, __pyx_filename);
16621 __Pyx_XGIVEREF(__pyx_r);
16622 __Pyx_RefNannyFinishContext();
16634 static PyObject *__pyx_pw_10cmeshTools_43generateQuadrilateralMeshFromRectangularGrid(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16635 static void __pyx_f_10cmeshTools_generateQuadrilateralMeshFromRectangularGrid(
int __pyx_v_nx,
int __pyx_v_ny, CYTHON_UNUSED
int __pyx_v_px, CYTHON_UNUSED
int __pyx_v_py,
double __pyx_v_Lx,
double __pyx_v_Ly,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
16636 __Pyx_RefNannyDeclarations
16637 __Pyx_RefNannySetupContext(
"generateQuadrilateralMeshFromRectangularGrid", 0);
16655 (void)(
regularMeshNodes2D(__pyx_v_nx, __pyx_v_ny, __pyx_v_Lx, __pyx_v_Ly, __pyx_v_cmesh->mesh));
16684 __Pyx_RefNannyFinishContext();
16688 static PyObject *__pyx_pw_10cmeshTools_43generateQuadrilateralMeshFromRectangularGrid(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16689 static PyObject *__pyx_pw_10cmeshTools_43generateQuadrilateralMeshFromRectangularGrid(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
16696 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh = 0;
16697 PyObject *__pyx_r = 0;
16698 __Pyx_RefNannyDeclarations
16699 __Pyx_RefNannySetupContext(
"generateQuadrilateralMeshFromRectangularGrid (wrapper)", 0);
16701 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nx,&__pyx_n_s_ny,&__pyx_n_s_px,&__pyx_n_s_py,&__pyx_n_s_Lx,&__pyx_n_s_Ly,&__pyx_n_s_cmesh,0};
16702 PyObject* values[7] = {0,0,0,0,0,0,0};
16703 if (unlikely(__pyx_kwds)) {
16704 Py_ssize_t kw_args;
16705 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
16706 switch (pos_args) {
16707 case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16708 CYTHON_FALLTHROUGH;
16709 case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16710 CYTHON_FALLTHROUGH;
16711 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16712 CYTHON_FALLTHROUGH;
16713 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16714 CYTHON_FALLTHROUGH;
16715 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16716 CYTHON_FALLTHROUGH;
16717 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16718 CYTHON_FALLTHROUGH;
16719 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16720 CYTHON_FALLTHROUGH;
16722 default:
goto __pyx_L5_argtuple_error;
16724 kw_args = PyDict_Size(__pyx_kwds);
16725 switch (pos_args) {
16727 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nx)) != 0)) kw_args--;
16728 else goto __pyx_L5_argtuple_error;
16729 CYTHON_FALLTHROUGH;
16731 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ny)) != 0)) kw_args--;
16733 __Pyx_RaiseArgtupleInvalid(
"generateQuadrilateralMeshFromRectangularGrid", 1, 7, 7, 1); __PYX_ERR(1, 441, __pyx_L3_error)
16735 CYTHON_FALLTHROUGH;
16737 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_px)) != 0)) kw_args--;
16739 __Pyx_RaiseArgtupleInvalid(
"generateQuadrilateralMeshFromRectangularGrid", 1, 7, 7, 2); __PYX_ERR(1, 441, __pyx_L3_error)
16741 CYTHON_FALLTHROUGH;
16743 if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_py)) != 0)) kw_args--;
16745 __Pyx_RaiseArgtupleInvalid(
"generateQuadrilateralMeshFromRectangularGrid", 1, 7, 7, 3); __PYX_ERR(1, 441, __pyx_L3_error)
16747 CYTHON_FALLTHROUGH;
16749 if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lx)) != 0)) kw_args--;
16751 __Pyx_RaiseArgtupleInvalid(
"generateQuadrilateralMeshFromRectangularGrid", 1, 7, 7, 4); __PYX_ERR(1, 441, __pyx_L3_error)
16753 CYTHON_FALLTHROUGH;
16755 if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Ly)) != 0)) kw_args--;
16757 __Pyx_RaiseArgtupleInvalid(
"generateQuadrilateralMeshFromRectangularGrid", 1, 7, 7, 5); __PYX_ERR(1, 441, __pyx_L3_error)
16759 CYTHON_FALLTHROUGH;
16761 if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmesh)) != 0)) kw_args--;
16763 __Pyx_RaiseArgtupleInvalid(
"generateQuadrilateralMeshFromRectangularGrid", 1, 7, 7, 6); __PYX_ERR(1, 441, __pyx_L3_error)
16766 if (unlikely(kw_args > 0)) {
16767 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"generateQuadrilateralMeshFromRectangularGrid") < 0)) __PYX_ERR(1, 441, __pyx_L3_error)
16769 }
else if (PyTuple_GET_SIZE(__pyx_args) != 7) {
16770 goto __pyx_L5_argtuple_error;
16772 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
16773 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
16774 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
16775 values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
16776 values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
16777 values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
16778 values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
16780 __pyx_v_nx = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nx == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 441, __pyx_L3_error)
16781 __pyx_v_ny = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_ny == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 442, __pyx_L3_error)
16782 __pyx_v_px = __Pyx_PyInt_As_int(values[2]);
if (unlikely((__pyx_v_px == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 443, __pyx_L3_error)
16783 __pyx_v_py = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_py == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 444, __pyx_L3_error)
16784 __pyx_v_Lx = __pyx_PyFloat_AsDouble(values[4]);
if (unlikely((__pyx_v_Lx == (
double)-1) && PyErr_Occurred())) __PYX_ERR(1, 445, __pyx_L3_error)
16785 __pyx_v_Ly = __pyx_PyFloat_AsDouble(values[5]);
if (unlikely((__pyx_v_Ly == (
double)-1) && PyErr_Occurred())) __PYX_ERR(1, 446, __pyx_L3_error)
16786 __pyx_v_cmesh = ((
struct __pyx_obj_10cmeshTools_CMesh *)values[6]);
16788 goto __pyx_L4_argument_unpacking_done;
16789 __pyx_L5_argtuple_error:;
16790 __Pyx_RaiseArgtupleInvalid(
"generateQuadrilateralMeshFromRectangularGrid", 1, 7, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 441, __pyx_L3_error)
16792 __Pyx_AddTraceback(
"cmeshTools.generateQuadrilateralMeshFromRectangularGrid", __pyx_clineno, __pyx_lineno, __pyx_filename);
16793 __Pyx_RefNannyFinishContext();
16795 __pyx_L4_argument_unpacking_done:;
16796 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 447, __pyx_L1_error)
16797 __pyx_r = __pyx_pf_10cmeshTools_42generateQuadrilateralMeshFromRectangularGrid(__pyx_self, __pyx_v_nx, __pyx_v_ny, __pyx_v_px, __pyx_v_py, __pyx_v_Lx, __pyx_v_Ly, __pyx_v_cmesh);
16804 __Pyx_RefNannyFinishContext();
16808 static PyObject *__pyx_pf_10cmeshTools_42generateQuadrilateralMeshFromRectangularGrid(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nx,
int __pyx_v_ny,
int __pyx_v_px,
int __pyx_v_py,
double __pyx_v_Lx,
double __pyx_v_Ly,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
16809 PyObject *__pyx_r = NULL;
16810 __Pyx_RefNannyDeclarations
16811 PyObject *__pyx_t_1 = NULL;
16812 __Pyx_RefNannySetupContext(
"generateQuadrilateralMeshFromRectangularGrid", 0);
16813 __Pyx_XDECREF(__pyx_r);
16814 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_generateQuadrilateralMeshFromRectangularGrid(__pyx_v_nx, __pyx_v_ny, __pyx_v_px, __pyx_v_py, __pyx_v_Lx, __pyx_v_Ly, __pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 441, __pyx_L1_error)
16815 __Pyx_GOTREF(__pyx_t_1);
16816 __pyx_r = __pyx_t_1;
16822 __Pyx_XDECREF(__pyx_t_1);
16823 __Pyx_AddTraceback(
"cmeshTools.generateQuadrilateralMeshFromRectangularGrid", __pyx_clineno, __pyx_lineno, __pyx_filename);
16826 __Pyx_XGIVEREF(__pyx_r);
16827 __Pyx_RefNannyFinishContext();
16839 static PyObject *__pyx_pw_10cmeshTools_45computeGeometricInfo_triangle(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
16840 static void __pyx_f_10cmeshTools_computeGeometricInfo_triangle(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
16841 __Pyx_RefNannyDeclarations
16842 __Pyx_RefNannySetupContext(
"computeGeometricInfo_triangle", 0);
16862 __Pyx_RefNannyFinishContext();
16866 static PyObject *__pyx_pw_10cmeshTools_45computeGeometricInfo_triangle(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
16867 static PyObject *__pyx_pw_10cmeshTools_45computeGeometricInfo_triangle(PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
16868 PyObject *__pyx_r = 0;
16869 __Pyx_RefNannyDeclarations
16870 __Pyx_RefNannySetupContext(
"computeGeometricInfo_triangle (wrapper)", 0);
16871 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 453, __pyx_L1_error)
16872 __pyx_r = __pyx_pf_10cmeshTools_44computeGeometricInfo_triangle(__pyx_self, ((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_cmesh));
16879 __Pyx_RefNannyFinishContext();
16883 static PyObject *__pyx_pf_10cmeshTools_44computeGeometricInfo_triangle(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
16884 PyObject *__pyx_r = NULL;
16885 __Pyx_RefNannyDeclarations
16886 PyObject *__pyx_t_1 = NULL;
16887 __Pyx_RefNannySetupContext(
"computeGeometricInfo_triangle", 0);
16888 __Pyx_XDECREF(__pyx_r);
16889 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_computeGeometricInfo_triangle(__pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 453, __pyx_L1_error)
16890 __Pyx_GOTREF(__pyx_t_1);
16891 __pyx_r = __pyx_t_1;
16897 __Pyx_XDECREF(__pyx_t_1);
16898 __Pyx_AddTraceback(
"cmeshTools.computeGeometricInfo_triangle", __pyx_clineno, __pyx_lineno, __pyx_filename);
16901 __Pyx_XGIVEREF(__pyx_r);
16902 __Pyx_RefNannyFinishContext();
16914 static PyObject *__pyx_pw_10cmeshTools_47allocateGeometricInfo_triangle(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
16915 static void __pyx_f_10cmeshTools_allocateGeometricInfo_triangle(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
16916 __Pyx_RefNannyDeclarations
16917 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_triangle", 0);
16937 __Pyx_RefNannyFinishContext();
16941 static PyObject *__pyx_pw_10cmeshTools_47allocateGeometricInfo_triangle(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
16942 static PyObject *__pyx_pw_10cmeshTools_47allocateGeometricInfo_triangle(PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
16943 PyObject *__pyx_r = 0;
16944 __Pyx_RefNannyDeclarations
16945 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_triangle (wrapper)", 0);
16946 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 456, __pyx_L1_error)
16947 __pyx_r = __pyx_pf_10cmeshTools_46allocateGeometricInfo_triangle(__pyx_self, ((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_cmesh));
16954 __Pyx_RefNannyFinishContext();
16958 static PyObject *__pyx_pf_10cmeshTools_46allocateGeometricInfo_triangle(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
16959 PyObject *__pyx_r = NULL;
16960 __Pyx_RefNannyDeclarations
16961 PyObject *__pyx_t_1 = NULL;
16962 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_triangle", 0);
16963 __Pyx_XDECREF(__pyx_r);
16964 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_allocateGeometricInfo_triangle(__pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 456, __pyx_L1_error)
16965 __Pyx_GOTREF(__pyx_t_1);
16966 __pyx_r = __pyx_t_1;
16972 __Pyx_XDECREF(__pyx_t_1);
16973 __Pyx_AddTraceback(
"cmeshTools.allocateGeometricInfo_triangle", __pyx_clineno, __pyx_lineno, __pyx_filename);
16976 __Pyx_XGIVEREF(__pyx_r);
16977 __Pyx_RefNannyFinishContext();
16989 static PyObject *__pyx_pw_10cmeshTools_49generateEdgeMeshFromRectangularGrid(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
16990 static void __pyx_f_10cmeshTools_generateEdgeMeshFromRectangularGrid(
int __pyx_v_nx,
double __pyx_v_Lx,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
16991 __Pyx_RefNannyDeclarations
16992 __Pyx_RefNannySetupContext(
"generateEdgeMeshFromRectangularGrid", 0);
17030 __Pyx_RefNannyFinishContext();
17034 static PyObject *__pyx_pw_10cmeshTools_49generateEdgeMeshFromRectangularGrid(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
17035 static PyObject *__pyx_pw_10cmeshTools_49generateEdgeMeshFromRectangularGrid(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
17038 struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh = 0;
17039 PyObject *__pyx_r = 0;
17040 __Pyx_RefNannyDeclarations
17041 __Pyx_RefNannySetupContext(
"generateEdgeMeshFromRectangularGrid (wrapper)", 0);
17043 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nx,&__pyx_n_s_Lx,&__pyx_n_s_cmesh,0};
17044 PyObject* values[3] = {0,0,0};
17045 if (unlikely(__pyx_kwds)) {
17046 Py_ssize_t kw_args;
17047 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
17048 switch (pos_args) {
17049 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17050 CYTHON_FALLTHROUGH;
17051 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17052 CYTHON_FALLTHROUGH;
17053 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17054 CYTHON_FALLTHROUGH;
17056 default:
goto __pyx_L5_argtuple_error;
17058 kw_args = PyDict_Size(__pyx_kwds);
17059 switch (pos_args) {
17061 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nx)) != 0)) kw_args--;
17062 else goto __pyx_L5_argtuple_error;
17063 CYTHON_FALLTHROUGH;
17065 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_Lx)) != 0)) kw_args--;
17067 __Pyx_RaiseArgtupleInvalid(
"generateEdgeMeshFromRectangularGrid", 1, 3, 3, 1); __PYX_ERR(1, 459, __pyx_L3_error)
17069 CYTHON_FALLTHROUGH;
17071 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmesh)) != 0)) kw_args--;
17073 __Pyx_RaiseArgtupleInvalid(
"generateEdgeMeshFromRectangularGrid", 1, 3, 3, 2); __PYX_ERR(1, 459, __pyx_L3_error)
17076 if (unlikely(kw_args > 0)) {
17077 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"generateEdgeMeshFromRectangularGrid") < 0)) __PYX_ERR(1, 459, __pyx_L3_error)
17079 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
17080 goto __pyx_L5_argtuple_error;
17082 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17083 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17084 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17086 __pyx_v_nx = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nx == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 459, __pyx_L3_error)
17087 __pyx_v_Lx = __pyx_PyFloat_AsDouble(values[1]);
if (unlikely((__pyx_v_Lx == (
double)-1) && PyErr_Occurred())) __PYX_ERR(1, 460, __pyx_L3_error)
17088 __pyx_v_cmesh = ((
struct __pyx_obj_10cmeshTools_CMesh *)values[2]);
17090 goto __pyx_L4_argument_unpacking_done;
17091 __pyx_L5_argtuple_error:;
17092 __Pyx_RaiseArgtupleInvalid(
"generateEdgeMeshFromRectangularGrid", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 459, __pyx_L3_error)
17094 __Pyx_AddTraceback(
"cmeshTools.generateEdgeMeshFromRectangularGrid", __pyx_clineno, __pyx_lineno, __pyx_filename);
17095 __Pyx_RefNannyFinishContext();
17097 __pyx_L4_argument_unpacking_done:;
17098 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 461, __pyx_L1_error)
17099 __pyx_r = __pyx_pf_10cmeshTools_48generateEdgeMeshFromRectangularGrid(__pyx_self, __pyx_v_nx, __pyx_v_Lx, __pyx_v_cmesh);
17106 __Pyx_RefNannyFinishContext();
17110 static PyObject *__pyx_pf_10cmeshTools_48generateEdgeMeshFromRectangularGrid(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nx,
double __pyx_v_Lx,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
17111 PyObject *__pyx_r = NULL;
17112 __Pyx_RefNannyDeclarations
17113 PyObject *__pyx_t_1 = NULL;
17114 __Pyx_RefNannySetupContext(
"generateEdgeMeshFromRectangularGrid", 0);
17115 __Pyx_XDECREF(__pyx_r);
17116 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_generateEdgeMeshFromRectangularGrid(__pyx_v_nx, __pyx_v_Lx, __pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 459, __pyx_L1_error)
17117 __Pyx_GOTREF(__pyx_t_1);
17118 __pyx_r = __pyx_t_1;
17124 __Pyx_XDECREF(__pyx_t_1);
17125 __Pyx_AddTraceback(
"cmeshTools.generateEdgeMeshFromRectangularGrid", __pyx_clineno, __pyx_lineno, __pyx_filename);
17128 __Pyx_XGIVEREF(__pyx_r);
17129 __Pyx_RefNannyFinishContext();
17141 static PyObject *__pyx_pw_10cmeshTools_51computeGeometricInfo_edge(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
17142 static void __pyx_f_10cmeshTools_computeGeometricInfo_edge(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
17143 __Pyx_RefNannyDeclarations
17144 __Pyx_RefNannySetupContext(
"computeGeometricInfo_edge", 0);
17164 __Pyx_RefNannyFinishContext();
17168 static PyObject *__pyx_pw_10cmeshTools_51computeGeometricInfo_edge(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
17169 static PyObject *__pyx_pw_10cmeshTools_51computeGeometricInfo_edge(PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
17170 PyObject *__pyx_r = 0;
17171 __Pyx_RefNannyDeclarations
17172 __Pyx_RefNannySetupContext(
"computeGeometricInfo_edge (wrapper)", 0);
17173 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 466, __pyx_L1_error)
17174 __pyx_r = __pyx_pf_10cmeshTools_50computeGeometricInfo_edge(__pyx_self, ((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_cmesh));
17181 __Pyx_RefNannyFinishContext();
17185 static PyObject *__pyx_pf_10cmeshTools_50computeGeometricInfo_edge(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
17186 PyObject *__pyx_r = NULL;
17187 __Pyx_RefNannyDeclarations
17188 PyObject *__pyx_t_1 = NULL;
17189 __Pyx_RefNannySetupContext(
"computeGeometricInfo_edge", 0);
17190 __Pyx_XDECREF(__pyx_r);
17191 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_computeGeometricInfo_edge(__pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 466, __pyx_L1_error)
17192 __Pyx_GOTREF(__pyx_t_1);
17193 __pyx_r = __pyx_t_1;
17199 __Pyx_XDECREF(__pyx_t_1);
17200 __Pyx_AddTraceback(
"cmeshTools.computeGeometricInfo_edge", __pyx_clineno, __pyx_lineno, __pyx_filename);
17203 __Pyx_XGIVEREF(__pyx_r);
17204 __Pyx_RefNannyFinishContext();
17216 static PyObject *__pyx_pw_10cmeshTools_53allocateGeometricInfo_edge(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
17217 static void __pyx_f_10cmeshTools_allocateGeometricInfo_edge(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
17218 __Pyx_RefNannyDeclarations
17219 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_edge", 0);
17239 __Pyx_RefNannyFinishContext();
17243 static PyObject *__pyx_pw_10cmeshTools_53allocateGeometricInfo_edge(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
17244 static PyObject *__pyx_pw_10cmeshTools_53allocateGeometricInfo_edge(PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
17245 PyObject *__pyx_r = 0;
17246 __Pyx_RefNannyDeclarations
17247 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_edge (wrapper)", 0);
17248 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 469, __pyx_L1_error)
17249 __pyx_r = __pyx_pf_10cmeshTools_52allocateGeometricInfo_edge(__pyx_self, ((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_cmesh));
17256 __Pyx_RefNannyFinishContext();
17260 static PyObject *__pyx_pf_10cmeshTools_52allocateGeometricInfo_edge(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
17261 PyObject *__pyx_r = NULL;
17262 __Pyx_RefNannyDeclarations
17263 PyObject *__pyx_t_1 = NULL;
17264 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_edge", 0);
17265 __Pyx_XDECREF(__pyx_r);
17266 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_allocateGeometricInfo_edge(__pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 469, __pyx_L1_error)
17267 __Pyx_GOTREF(__pyx_t_1);
17268 __pyx_r = __pyx_t_1;
17274 __Pyx_XDECREF(__pyx_t_1);
17275 __Pyx_AddTraceback(
"cmeshTools.allocateGeometricInfo_edge", __pyx_clineno, __pyx_lineno, __pyx_filename);
17278 __Pyx_XGIVEREF(__pyx_r);
17279 __Pyx_RefNannyFinishContext();
17291 static PyObject *__pyx_pw_10cmeshTools_55computeGeometricInfo_hexahedron(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
17292 static void __pyx_f_10cmeshTools_computeGeometricInfo_hexahedron(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
17293 __Pyx_RefNannyDeclarations
17294 __Pyx_RefNannySetupContext(
"computeGeometricInfo_hexahedron", 0);
17314 __Pyx_RefNannyFinishContext();
17318 static PyObject *__pyx_pw_10cmeshTools_55computeGeometricInfo_hexahedron(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
17319 static PyObject *__pyx_pw_10cmeshTools_55computeGeometricInfo_hexahedron(PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
17320 PyObject *__pyx_r = 0;
17321 __Pyx_RefNannyDeclarations
17322 __Pyx_RefNannySetupContext(
"computeGeometricInfo_hexahedron (wrapper)", 0);
17323 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 473, __pyx_L1_error)
17324 __pyx_r = __pyx_pf_10cmeshTools_54computeGeometricInfo_hexahedron(__pyx_self, ((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_cmesh));
17331 __Pyx_RefNannyFinishContext();
17335 static PyObject *__pyx_pf_10cmeshTools_54computeGeometricInfo_hexahedron(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
17336 PyObject *__pyx_r = NULL;
17337 __Pyx_RefNannyDeclarations
17338 PyObject *__pyx_t_1 = NULL;
17339 __Pyx_RefNannySetupContext(
"computeGeometricInfo_hexahedron", 0);
17340 __Pyx_XDECREF(__pyx_r);
17341 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_computeGeometricInfo_hexahedron(__pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 473, __pyx_L1_error)
17342 __Pyx_GOTREF(__pyx_t_1);
17343 __pyx_r = __pyx_t_1;
17349 __Pyx_XDECREF(__pyx_t_1);
17350 __Pyx_AddTraceback(
"cmeshTools.computeGeometricInfo_hexahedron", __pyx_clineno, __pyx_lineno, __pyx_filename);
17353 __Pyx_XGIVEREF(__pyx_r);
17354 __Pyx_RefNannyFinishContext();
17366 static PyObject *__pyx_pw_10cmeshTools_57computeGeometricInfo_quadrilateral(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
17367 static void __pyx_f_10cmeshTools_computeGeometricInfo_quadrilateral(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
17368 __Pyx_RefNannyDeclarations
17369 __Pyx_RefNannySetupContext(
"computeGeometricInfo_quadrilateral", 0);
17389 __Pyx_RefNannyFinishContext();
17393 static PyObject *__pyx_pw_10cmeshTools_57computeGeometricInfo_quadrilateral(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
17394 static PyObject *__pyx_pw_10cmeshTools_57computeGeometricInfo_quadrilateral(PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
17395 PyObject *__pyx_r = 0;
17396 __Pyx_RefNannyDeclarations
17397 __Pyx_RefNannySetupContext(
"computeGeometricInfo_quadrilateral (wrapper)", 0);
17398 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 476, __pyx_L1_error)
17399 __pyx_r = __pyx_pf_10cmeshTools_56computeGeometricInfo_quadrilateral(__pyx_self, ((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_cmesh));
17406 __Pyx_RefNannyFinishContext();
17410 static PyObject *__pyx_pf_10cmeshTools_56computeGeometricInfo_quadrilateral(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
17411 PyObject *__pyx_r = NULL;
17412 __Pyx_RefNannyDeclarations
17413 PyObject *__pyx_t_1 = NULL;
17414 __Pyx_RefNannySetupContext(
"computeGeometricInfo_quadrilateral", 0);
17415 __Pyx_XDECREF(__pyx_r);
17416 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_computeGeometricInfo_quadrilateral(__pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 476, __pyx_L1_error)
17417 __Pyx_GOTREF(__pyx_t_1);
17418 __pyx_r = __pyx_t_1;
17424 __Pyx_XDECREF(__pyx_t_1);
17425 __Pyx_AddTraceback(
"cmeshTools.computeGeometricInfo_quadrilateral", __pyx_clineno, __pyx_lineno, __pyx_filename);
17428 __Pyx_XGIVEREF(__pyx_r);
17429 __Pyx_RefNannyFinishContext();
17441 static PyObject *__pyx_pw_10cmeshTools_59allocateGeometricInfo_hexahedron(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
17442 static void __pyx_f_10cmeshTools_allocateGeometricInfo_hexahedron(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
17443 __Pyx_RefNannyDeclarations
17444 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_hexahedron", 0);
17464 __Pyx_RefNannyFinishContext();
17468 static PyObject *__pyx_pw_10cmeshTools_59allocateGeometricInfo_hexahedron(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
17469 static PyObject *__pyx_pw_10cmeshTools_59allocateGeometricInfo_hexahedron(PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
17470 PyObject *__pyx_r = 0;
17471 __Pyx_RefNannyDeclarations
17472 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_hexahedron (wrapper)", 0);
17473 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 479, __pyx_L1_error)
17474 __pyx_r = __pyx_pf_10cmeshTools_58allocateGeometricInfo_hexahedron(__pyx_self, ((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_cmesh));
17481 __Pyx_RefNannyFinishContext();
17485 static PyObject *__pyx_pf_10cmeshTools_58allocateGeometricInfo_hexahedron(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
17486 PyObject *__pyx_r = NULL;
17487 __Pyx_RefNannyDeclarations
17488 PyObject *__pyx_t_1 = NULL;
17489 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_hexahedron", 0);
17490 __Pyx_XDECREF(__pyx_r);
17491 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_allocateGeometricInfo_hexahedron(__pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 479, __pyx_L1_error)
17492 __Pyx_GOTREF(__pyx_t_1);
17493 __pyx_r = __pyx_t_1;
17499 __Pyx_XDECREF(__pyx_t_1);
17500 __Pyx_AddTraceback(
"cmeshTools.allocateGeometricInfo_hexahedron", __pyx_clineno, __pyx_lineno, __pyx_filename);
17503 __Pyx_XGIVEREF(__pyx_r);
17504 __Pyx_RefNannyFinishContext();
17516 static PyObject *__pyx_pw_10cmeshTools_61allocateGeometricInfo_quadrilateral(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
17517 static void __pyx_f_10cmeshTools_allocateGeometricInfo_quadrilateral(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
17518 __Pyx_RefNannyDeclarations
17519 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_quadrilateral", 0);
17539 __Pyx_RefNannyFinishContext();
17543 static PyObject *__pyx_pw_10cmeshTools_61allocateGeometricInfo_quadrilateral(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
17544 static PyObject *__pyx_pw_10cmeshTools_61allocateGeometricInfo_quadrilateral(PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
17545 PyObject *__pyx_r = 0;
17546 __Pyx_RefNannyDeclarations
17547 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_quadrilateral (wrapper)", 0);
17548 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 482, __pyx_L1_error)
17549 __pyx_r = __pyx_pf_10cmeshTools_60allocateGeometricInfo_quadrilateral(__pyx_self, ((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_cmesh));
17556 __Pyx_RefNannyFinishContext();
17560 static PyObject *__pyx_pf_10cmeshTools_60allocateGeometricInfo_quadrilateral(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
17561 PyObject *__pyx_r = NULL;
17562 __Pyx_RefNannyDeclarations
17563 PyObject *__pyx_t_1 = NULL;
17564 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_quadrilateral", 0);
17565 __Pyx_XDECREF(__pyx_r);
17566 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_allocateGeometricInfo_quadrilateral(__pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 482, __pyx_L1_error)
17567 __Pyx_GOTREF(__pyx_t_1);
17568 __pyx_r = __pyx_t_1;
17574 __Pyx_XDECREF(__pyx_t_1);
17575 __Pyx_AddTraceback(
"cmeshTools.allocateGeometricInfo_quadrilateral", __pyx_clineno, __pyx_lineno, __pyx_filename);
17578 __Pyx_XGIVEREF(__pyx_r);
17579 __Pyx_RefNannyFinishContext();
17591 static PyObject *__pyx_pw_10cmeshTools_63computeGeometricInfo_NURBS(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
17592 static void __pyx_f_10cmeshTools_computeGeometricInfo_NURBS(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
17593 __Pyx_RefNannyDeclarations
17594 __Pyx_RefNannySetupContext(
"computeGeometricInfo_NURBS", 0);
17614 __Pyx_RefNannyFinishContext();
17618 static PyObject *__pyx_pw_10cmeshTools_63computeGeometricInfo_NURBS(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
17619 static PyObject *__pyx_pw_10cmeshTools_63computeGeometricInfo_NURBS(PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
17620 PyObject *__pyx_r = 0;
17621 __Pyx_RefNannyDeclarations
17622 __Pyx_RefNannySetupContext(
"computeGeometricInfo_NURBS (wrapper)", 0);
17623 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 485, __pyx_L1_error)
17624 __pyx_r = __pyx_pf_10cmeshTools_62computeGeometricInfo_NURBS(__pyx_self, ((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_cmesh));
17631 __Pyx_RefNannyFinishContext();
17635 static PyObject *__pyx_pf_10cmeshTools_62computeGeometricInfo_NURBS(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
17636 PyObject *__pyx_r = NULL;
17637 __Pyx_RefNannyDeclarations
17638 PyObject *__pyx_t_1 = NULL;
17639 __Pyx_RefNannySetupContext(
"computeGeometricInfo_NURBS", 0);
17640 __Pyx_XDECREF(__pyx_r);
17641 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_computeGeometricInfo_NURBS(__pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 485, __pyx_L1_error)
17642 __Pyx_GOTREF(__pyx_t_1);
17643 __pyx_r = __pyx_t_1;
17649 __Pyx_XDECREF(__pyx_t_1);
17650 __Pyx_AddTraceback(
"cmeshTools.computeGeometricInfo_NURBS", __pyx_clineno, __pyx_lineno, __pyx_filename);
17653 __Pyx_XGIVEREF(__pyx_r);
17654 __Pyx_RefNannyFinishContext();
17666 static PyObject *__pyx_pw_10cmeshTools_65allocateGeometricInfo_NURBS(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
17667 static void __pyx_f_10cmeshTools_allocateGeometricInfo_NURBS(
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh, CYTHON_UNUSED
int __pyx_skip_dispatch) {
17668 __Pyx_RefNannyDeclarations
17669 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_NURBS", 0);
17689 __Pyx_RefNannyFinishContext();
17693 static PyObject *__pyx_pw_10cmeshTools_65allocateGeometricInfo_NURBS(PyObject *__pyx_self, PyObject *__pyx_v_cmesh);
17694 static PyObject *__pyx_pw_10cmeshTools_65allocateGeometricInfo_NURBS(PyObject *__pyx_self, PyObject *__pyx_v_cmesh) {
17695 PyObject *__pyx_r = 0;
17696 __Pyx_RefNannyDeclarations
17697 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_NURBS (wrapper)", 0);
17698 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmesh), __pyx_ptype_10cmeshTools_CMesh, 1,
"cmesh", 0))) __PYX_ERR(1, 488, __pyx_L1_error)
17699 __pyx_r = __pyx_pf_10cmeshTools_64allocateGeometricInfo_NURBS(__pyx_self, ((
struct __pyx_obj_10cmeshTools_CMesh *)__pyx_v_cmesh));
17706 __Pyx_RefNannyFinishContext();
17710 static PyObject *__pyx_pf_10cmeshTools_64allocateGeometricInfo_NURBS(CYTHON_UNUSED PyObject *__pyx_self,
struct __pyx_obj_10cmeshTools_CMesh *__pyx_v_cmesh) {
17711 PyObject *__pyx_r = NULL;
17712 __Pyx_RefNannyDeclarations
17713 PyObject *__pyx_t_1 = NULL;
17714 __Pyx_RefNannySetupContext(
"allocateGeometricInfo_NURBS", 0);
17715 __Pyx_XDECREF(__pyx_r);
17716 __pyx_t_1 = __Pyx_void_to_None(__pyx_f_10cmeshTools_allocateGeometricInfo_NURBS(__pyx_v_cmesh, 0));
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 488, __pyx_L1_error)
17717 __Pyx_GOTREF(__pyx_t_1);
17718 __pyx_r = __pyx_t_1;
17724 __Pyx_XDECREF(__pyx_t_1);
17725 __Pyx_AddTraceback(
"cmeshTools.allocateGeometricInfo_NURBS", __pyx_clineno, __pyx_lineno, __pyx_filename);
17728 __Pyx_XGIVEREF(__pyx_r);
17729 __Pyx_RefNannyFinishContext();
17742 static PyObject *__pyx_pw_10cmeshTools_67locallyRefineMultilevelMesh(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
17743 static PyMethodDef __pyx_mdef_10cmeshTools_67locallyRefineMultilevelMesh = {
"locallyRefineMultilevelMesh", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_67locallyRefineMultilevelMesh, METH_VARARGS|METH_KEYWORDS, 0};
17744 static PyObject *__pyx_pw_10cmeshTools_67locallyRefineMultilevelMesh(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
17745 int __pyx_v_nSpace;
17746 struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_cmultilevelMesh = 0;
17747 PyArrayObject *__pyx_v_elementTagArray = 0;
17748 int __pyx_v_refineTypeFlag;
17749 PyObject *__pyx_r = 0;
17750 __Pyx_RefNannyDeclarations
17751 __Pyx_RefNannySetupContext(
"locallyRefineMultilevelMesh (wrapper)", 0);
17753 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nSpace,&__pyx_n_s_cmultilevelMesh,&__pyx_n_s_elementTagArray,&__pyx_n_s_refineTypeFlag,0};
17754 PyObject* values[4] = {0,0,0,0};
17755 if (unlikely(__pyx_kwds)) {
17756 Py_ssize_t kw_args;
17757 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
17758 switch (pos_args) {
17759 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17760 CYTHON_FALLTHROUGH;
17761 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17762 CYTHON_FALLTHROUGH;
17763 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17764 CYTHON_FALLTHROUGH;
17765 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17766 CYTHON_FALLTHROUGH;
17768 default:
goto __pyx_L5_argtuple_error;
17770 kw_args = PyDict_Size(__pyx_kwds);
17771 switch (pos_args) {
17773 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
17774 else goto __pyx_L5_argtuple_error;
17775 CYTHON_FALLTHROUGH;
17777 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmultilevelMesh)) != 0)) kw_args--;
17779 __Pyx_RaiseArgtupleInvalid(
"locallyRefineMultilevelMesh", 0, 3, 4, 1); __PYX_ERR(1, 491, __pyx_L3_error)
17781 CYTHON_FALLTHROUGH;
17783 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_elementTagArray)) != 0)) kw_args--;
17785 __Pyx_RaiseArgtupleInvalid(
"locallyRefineMultilevelMesh", 0, 3, 4, 2); __PYX_ERR(1, 491, __pyx_L3_error)
17787 CYTHON_FALLTHROUGH;
17790 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_refineTypeFlag);
17791 if (value) { values[3] = value; kw_args--; }
17794 if (unlikely(kw_args > 0)) {
17795 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"locallyRefineMultilevelMesh") < 0)) __PYX_ERR(1, 491, __pyx_L3_error)
17798 switch (PyTuple_GET_SIZE(__pyx_args)) {
17799 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
17800 CYTHON_FALLTHROUGH;
17801 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
17802 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
17803 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
17805 default:
goto __pyx_L5_argtuple_error;
17808 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 491, __pyx_L3_error)
17809 __pyx_v_cmultilevelMesh = ((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)values[1]);
17810 __pyx_v_elementTagArray = ((PyArrayObject *)values[2]);
17812 __pyx_v_refineTypeFlag = __Pyx_PyInt_As_int(values[3]);
if (unlikely((__pyx_v_refineTypeFlag == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 494, __pyx_L3_error)
17814 __pyx_v_refineTypeFlag = ((int)0);
17817 goto __pyx_L4_argument_unpacking_done;
17818 __pyx_L5_argtuple_error:;
17819 __Pyx_RaiseArgtupleInvalid(
"locallyRefineMultilevelMesh", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 491, __pyx_L3_error)
17821 __Pyx_AddTraceback(
"cmeshTools.locallyRefineMultilevelMesh", __pyx_clineno, __pyx_lineno, __pyx_filename);
17822 __Pyx_RefNannyFinishContext();
17824 __pyx_L4_argument_unpacking_done:;
17825 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmultilevelMesh), __pyx_ptype_10cmeshTools_CMultilevelMesh, 1,
"cmultilevelMesh", 0))) __PYX_ERR(1, 492, __pyx_L1_error)
17826 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elementTagArray), __pyx_ptype_5numpy_ndarray, 1,
"elementTagArray", 0))) __PYX_ERR(1, 493, __pyx_L1_error)
17827 __pyx_r = __pyx_pf_10cmeshTools_66locallyRefineMultilevelMesh(__pyx_self, __pyx_v_nSpace, __pyx_v_cmultilevelMesh, __pyx_v_elementTagArray, __pyx_v_refineTypeFlag);
17834 __Pyx_RefNannyFinishContext();
17838 static PyObject *__pyx_pf_10cmeshTools_66locallyRefineMultilevelMesh(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nSpace,
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_cmultilevelMesh, PyArrayObject *__pyx_v_elementTagArray,
int __pyx_v_refineTypeFlag) {
17839 CYTHON_UNUSED
int __pyx_v_failed;
17840 int __pyx_v_finestLevel;
17841 PyObject *__pyx_r = NULL;
17842 __Pyx_RefNannyDeclarations
17845 PyObject *__pyx_t_3 = NULL;
17846 PyObject *__pyx_t_4 = NULL;
17847 PyObject *__pyx_t_5 = NULL;
17848 PyObject *__pyx_t_6 = NULL;
17849 __Pyx_RefNannySetupContext(
"locallyRefineMultilevelMesh", 0);
17858 switch (__pyx_v_nSpace) {
17868 __pyx_v_failed =
locallyRefineEdgeMesh(__pyx_v_cmultilevelMesh->multilevelMesh, ((
int *)__pyx_v_elementTagArray->data));
17877 __pyx_t_1 = __pyx_v_cmultilevelMesh->multilevelMesh.nLevels;
17878 __pyx_v_finestLevel = __pyx_t_1;
17914 __pyx_t_2 = ((__pyx_v_finestLevel > 1) != 0);
17924 (void)(
assignElementBoundaryMaterialTypesFromParent((__pyx_v_cmultilevelMesh->multilevelMesh.meshArray[(__pyx_v_finestLevel - 2)]), (__pyx_v_cmultilevelMesh->multilevelMesh.meshArray[(__pyx_v_finestLevel - 1)]), (__pyx_v_cmultilevelMesh->multilevelMesh.elementParentsArray[(__pyx_v_finestLevel - 1)]), 1));
17952 switch (__pyx_v_refineTypeFlag) {
18000 __pyx_v_failed =
locallyRefineTriangleMesh(__pyx_v_cmultilevelMesh->multilevelMesh, ((
int *)__pyx_v_elementTagArray->data));
18011 __pyx_t_1 = __pyx_v_cmultilevelMesh->multilevelMesh.nLevels;
18012 __pyx_v_finestLevel = __pyx_t_1;
18048 __pyx_t_2 = ((__pyx_v_finestLevel > 1) != 0);
18058 (void)(
assignElementBoundaryMaterialTypesFromParent((__pyx_v_cmultilevelMesh->multilevelMesh.meshArray[(__pyx_v_finestLevel - 2)]), (__pyx_v_cmultilevelMesh->multilevelMesh.meshArray[(__pyx_v_finestLevel - 1)]), (__pyx_v_cmultilevelMesh->multilevelMesh.elementParentsArray[(__pyx_v_finestLevel - 1)]), 2));
18086 __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_locallyRefine_nSpace_0_d_not_imp, __pyx_n_s_format);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 527, __pyx_L1_error)
18087 __Pyx_GOTREF(__pyx_t_4);
18088 __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_nSpace);
if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 527, __pyx_L1_error)
18089 __Pyx_GOTREF(__pyx_t_5);
18091 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
18092 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_4);
18093 if (likely(__pyx_t_6)) {
18094 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
18095 __Pyx_INCREF(__pyx_t_6);
18096 __Pyx_INCREF(
function);
18097 __Pyx_DECREF_SET(__pyx_t_4,
function);
18100 __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_6, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5);
18101 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
18102 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
18103 if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 527, __pyx_L1_error)
18104 __Pyx_GOTREF(__pyx_t_3);
18105 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
18106 if (__Pyx_PrintOne(0, __pyx_t_3) < 0) __PYX_ERR(1, 527, __pyx_L1_error)
18107 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
18120 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18123 __Pyx_XDECREF(__pyx_t_3);
18124 __Pyx_XDECREF(__pyx_t_4);
18125 __Pyx_XDECREF(__pyx_t_5);
18126 __Pyx_XDECREF(__pyx_t_6);
18127 __Pyx_AddTraceback(
"cmeshTools.locallyRefineMultilevelMesh", __pyx_clineno, __pyx_lineno, __pyx_filename);
18130 __Pyx_XGIVEREF(__pyx_r);
18131 __Pyx_RefNannyFinishContext();
18144 static PyObject *__pyx_pw_10cmeshTools_69setNewestNodeBases(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
18145 static PyMethodDef __pyx_mdef_10cmeshTools_69setNewestNodeBases = {
"setNewestNodeBases", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_69setNewestNodeBases, METH_VARARGS|METH_KEYWORDS, 0};
18146 static PyObject *__pyx_pw_10cmeshTools_69setNewestNodeBases(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
18147 int __pyx_v_nSpace;
18148 struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_cmultilevelMesh = 0;
18149 PyObject *__pyx_r = 0;
18150 __Pyx_RefNannyDeclarations
18151 __Pyx_RefNannySetupContext(
"setNewestNodeBases (wrapper)", 0);
18153 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_nSpace,&__pyx_n_s_cmultilevelMesh,0};
18154 PyObject* values[2] = {0,0};
18155 if (unlikely(__pyx_kwds)) {
18156 Py_ssize_t kw_args;
18157 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
18158 switch (pos_args) {
18159 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18160 CYTHON_FALLTHROUGH;
18161 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18162 CYTHON_FALLTHROUGH;
18164 default:
goto __pyx_L5_argtuple_error;
18166 kw_args = PyDict_Size(__pyx_kwds);
18167 switch (pos_args) {
18169 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_nSpace)) != 0)) kw_args--;
18170 else goto __pyx_L5_argtuple_error;
18171 CYTHON_FALLTHROUGH;
18173 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_cmultilevelMesh)) != 0)) kw_args--;
18175 __Pyx_RaiseArgtupleInvalid(
"setNewestNodeBases", 1, 2, 2, 1); __PYX_ERR(1, 529, __pyx_L3_error)
18178 if (unlikely(kw_args > 0)) {
18179 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"setNewestNodeBases") < 0)) __PYX_ERR(1, 529, __pyx_L3_error)
18181 }
else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
18182 goto __pyx_L5_argtuple_error;
18184 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
18185 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
18187 __pyx_v_nSpace = __Pyx_PyInt_As_int(values[0]);
if (unlikely((__pyx_v_nSpace == (
int)-1) && PyErr_Occurred())) __PYX_ERR(1, 529, __pyx_L3_error)
18188 __pyx_v_cmultilevelMesh = ((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)values[1]);
18190 goto __pyx_L4_argument_unpacking_done;
18191 __pyx_L5_argtuple_error:;
18192 __Pyx_RaiseArgtupleInvalid(
"setNewestNodeBases", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 529, __pyx_L3_error)
18194 __Pyx_AddTraceback(
"cmeshTools.setNewestNodeBases", __pyx_clineno, __pyx_lineno, __pyx_filename);
18195 __Pyx_RefNannyFinishContext();
18197 __pyx_L4_argument_unpacking_done:;
18198 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_cmultilevelMesh), __pyx_ptype_10cmeshTools_CMultilevelMesh, 1,
"cmultilevelMesh", 0))) __PYX_ERR(1, 529, __pyx_L1_error)
18199 __pyx_r = __pyx_pf_10cmeshTools_68setNewestNodeBases(__pyx_self, __pyx_v_nSpace, __pyx_v_cmultilevelMesh);
18206 __Pyx_RefNannyFinishContext();
18210 static PyObject *__pyx_pf_10cmeshTools_68setNewestNodeBases(CYTHON_UNUSED PyObject *__pyx_self,
int __pyx_v_nSpace,
struct __pyx_obj_10cmeshTools_CMultilevelMesh *__pyx_v_cmultilevelMesh) {
18211 CYTHON_UNUSED
int __pyx_v_failed;
18212 PyObject *__pyx_r = NULL;
18213 __Pyx_RefNannyDeclarations
18215 PyObject *__pyx_t_2 = NULL;
18216 PyObject *__pyx_t_3 = NULL;
18217 PyObject *__pyx_t_4 = NULL;
18218 PyObject *__pyx_t_5 = NULL;
18219 __Pyx_RefNannySetupContext(
"setNewestNodeBases", 0);
18228 __pyx_t_1 = ((__pyx_v_nSpace == 2) != 0);
18256 __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_kp_s_setNewestNodeBases_0_d_not_imple, __pyx_n_s_format);
if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 533, __pyx_L1_error)
18257 __Pyx_GOTREF(__pyx_t_3);
18258 __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_nSpace);
if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 533, __pyx_L1_error)
18259 __Pyx_GOTREF(__pyx_t_4);
18261 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
18262 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3);
18263 if (likely(__pyx_t_5)) {
18264 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
18265 __Pyx_INCREF(__pyx_t_5);
18266 __Pyx_INCREF(
function);
18267 __Pyx_DECREF_SET(__pyx_t_3,
function);
18270 __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4);
18271 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
18272 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
18273 if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 533, __pyx_L1_error)
18274 __Pyx_GOTREF(__pyx_t_2);
18275 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
18276 if (__Pyx_PrintOne(0, __pyx_t_2) < 0) __PYX_ERR(1, 533, __pyx_L1_error)
18277 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
18290 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
18293 __Pyx_XDECREF(__pyx_t_2);
18294 __Pyx_XDECREF(__pyx_t_3);
18295 __Pyx_XDECREF(__pyx_t_4);
18296 __Pyx_XDECREF(__pyx_t_5);
18297 __Pyx_AddTraceback(
"cmeshTools.setNewestNodeBases", __pyx_clineno, __pyx_lineno, __pyx_filename);
18300 __Pyx_XGIVEREF(__pyx_r);
18301 __Pyx_RefNannyFinishContext();
18314 static CYTHON_UNUSED
int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags);
18315 static CYTHON_UNUSED
int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags) {
18317 __Pyx_RefNannyDeclarations
18318 __Pyx_RefNannySetupContext(
"__getbuffer__ (wrapper)", 0);
18319 __pyx_r = __pyx_pf_5numpy_7ndarray___getbuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((
int)__pyx_v_flags));
18322 __Pyx_RefNannyFinishContext();
18326 static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags) {
18329 int __pyx_v_endian_detector;
18330 int __pyx_v_little_endian;
18333 PyArray_Descr *__pyx_v_descr = 0;
18334 int __pyx_v_offset;
18336 __Pyx_RefNannyDeclarations
18339 PyObject *__pyx_t_3 = NULL;
18343 PyArray_Descr *__pyx_t_7;
18344 PyObject *__pyx_t_8 = NULL;
18346 if (__pyx_v_info == NULL) {
18347 PyErr_SetString(PyExc_BufferError,
"PyObject_GetBuffer: view==NULL argument is obsolete");
18350 __Pyx_RefNannySetupContext(
"__getbuffer__", 0);
18351 __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None);
18352 __Pyx_GIVEREF(__pyx_v_info->obj);
18361 __pyx_v_endian_detector = 1;
18370 __pyx_v_little_endian = ((((
char *)(&__pyx_v_endian_detector))[0]) != 0);
18379 __pyx_v_ndim = PyArray_NDIM(__pyx_v_self);
18388 __pyx_t_2 = (((__pyx_v_flags & PyBUF_C_CONTIGUOUS) == PyBUF_C_CONTIGUOUS) != 0);
18391 __pyx_t_1 = __pyx_t_2;
18392 goto __pyx_L4_bool_binop_done;
18402 __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_ARRAY_C_CONTIGUOUS) != 0)) != 0);
18403 __pyx_t_1 = __pyx_t_2;
18404 __pyx_L4_bool_binop_done:;
18413 if (unlikely(__pyx_t_1)) {
18422 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__6, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 272, __pyx_L1_error)
18423 __Pyx_GOTREF(__pyx_t_3);
18424 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
18425 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
18426 __PYX_ERR(3, 272, __pyx_L1_error)
18444 __pyx_t_2 = (((__pyx_v_flags & PyBUF_F_CONTIGUOUS) == PyBUF_F_CONTIGUOUS) != 0);
18447 __pyx_t_1 = __pyx_t_2;
18448 goto __pyx_L7_bool_binop_done;
18458 __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_ARRAY_F_CONTIGUOUS) != 0)) != 0);
18459 __pyx_t_1 = __pyx_t_2;
18460 __pyx_L7_bool_binop_done:;
18469 if (unlikely(__pyx_t_1)) {
18478 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__7, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 276, __pyx_L1_error)
18479 __Pyx_GOTREF(__pyx_t_3);
18480 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
18481 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
18482 __PYX_ERR(3, 276, __pyx_L1_error)
18500 __pyx_v_info->buf = PyArray_DATA(__pyx_v_self);
18509 __pyx_v_info->ndim = __pyx_v_ndim;
18518 __pyx_t_1 = (((
sizeof(npy_intp)) != (
sizeof(Py_ssize_t))) != 0);
18528 __pyx_v_info->strides = ((Py_ssize_t *)PyObject_Malloc((((
sizeof(Py_ssize_t)) * 2) * ((size_t)__pyx_v_ndim))));
18537 __pyx_v_info->shape = (__pyx_v_info->strides + __pyx_v_ndim);
18546 __pyx_t_4 = __pyx_v_ndim;
18547 __pyx_t_5 = __pyx_t_4;
18548 for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
18549 __pyx_v_i = __pyx_t_6;
18558 (__pyx_v_info->strides[__pyx_v_i]) = (PyArray_STRIDES(__pyx_v_self)[__pyx_v_i]);
18567 (__pyx_v_info->shape[__pyx_v_i]) = (PyArray_DIMS(__pyx_v_self)[__pyx_v_i]);
18588 __pyx_v_info->strides = ((Py_ssize_t *)PyArray_STRIDES(__pyx_v_self));
18597 __pyx_v_info->shape = ((Py_ssize_t *)PyArray_DIMS(__pyx_v_self));
18608 __pyx_v_info->suboffsets = NULL;
18617 __pyx_v_info->itemsize = PyArray_ITEMSIZE(__pyx_v_self);
18626 __pyx_v_info->readonly = (!(PyArray_ISWRITEABLE(__pyx_v_self) != 0));
18644 __pyx_t_7 = PyArray_DESCR(__pyx_v_self);
18645 __pyx_t_3 = ((PyObject *)__pyx_t_7);
18646 __Pyx_INCREF(__pyx_t_3);
18647 __pyx_v_descr = ((PyArray_Descr *)__pyx_t_3);
18657 __Pyx_INCREF(((PyObject *)__pyx_v_self));
18658 __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
18659 __Pyx_GOTREF(__pyx_v_info->obj);
18660 __Pyx_DECREF(__pyx_v_info->obj);
18661 __pyx_v_info->obj = ((PyObject *)__pyx_v_self);
18670 __pyx_t_1 = ((!(PyDataType_HASFIELDS(__pyx_v_descr) != 0)) != 0);
18680 __pyx_t_4 = __pyx_v_descr->type_num;
18681 __pyx_v_t = __pyx_t_4;
18690 __pyx_t_2 = ((__pyx_v_descr->byteorder ==
'>') != 0);
18692 goto __pyx_L15_next_or;
18695 __pyx_t_2 = (__pyx_v_little_endian != 0);
18698 __pyx_t_1 = __pyx_t_2;
18699 goto __pyx_L14_bool_binop_done;
18701 __pyx_L15_next_or:;
18710 __pyx_t_2 = ((__pyx_v_descr->byteorder ==
'<') != 0);
18713 __pyx_t_1 = __pyx_t_2;
18714 goto __pyx_L14_bool_binop_done;
18716 __pyx_t_2 = ((!(__pyx_v_little_endian != 0)) != 0);
18717 __pyx_t_1 = __pyx_t_2;
18718 __pyx_L14_bool_binop_done:;
18727 if (unlikely(__pyx_t_1)) {
18736 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__8, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 306, __pyx_L1_error)
18737 __Pyx_GOTREF(__pyx_t_3);
18738 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
18739 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
18740 __PYX_ERR(3, 306, __pyx_L1_error)
18758 switch (__pyx_v_t) {
18760 __pyx_v_f = ((
char *)
"b");
18771 __pyx_v_f = ((
char *)
"B");
18782 __pyx_v_f = ((
char *)
"h");
18793 __pyx_v_f = ((
char *)
"H");
18804 __pyx_v_f = ((
char *)
"i");
18815 __pyx_v_f = ((
char *)
"I");
18826 __pyx_v_f = ((
char *)
"l");
18837 __pyx_v_f = ((
char *)
"L");
18848 __pyx_v_f = ((
char *)
"q");
18850 case NPY_ULONGLONG:
18859 __pyx_v_f = ((
char *)
"Q");
18870 __pyx_v_f = ((
char *)
"f");
18881 __pyx_v_f = ((
char *)
"d");
18883 case NPY_LONGDOUBLE:
18892 __pyx_v_f = ((
char *)
"g");
18903 __pyx_v_f = ((
char *)
"Zf");
18914 __pyx_v_f = ((
char *)
"Zd");
18916 case NPY_CLONGDOUBLE:
18925 __pyx_v_f = ((
char *)
"Zg");
18936 __pyx_v_f = ((
char *)
"O");
18947 __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_t);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 325, __pyx_L1_error)
18948 __Pyx_GOTREF(__pyx_t_3);
18949 __pyx_t_8 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_t_3);
if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 325, __pyx_L1_error)
18950 __Pyx_GOTREF(__pyx_t_8);
18951 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
18952 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_8);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 325, __pyx_L1_error)
18953 __Pyx_GOTREF(__pyx_t_3);
18954 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
18955 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
18956 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
18957 __PYX_ERR(3, 325, __pyx_L1_error)
18968 __pyx_v_info->format = __pyx_v_f;
18997 __pyx_v_info->format = ((
char *)PyObject_Malloc(0xFF));
19006 (__pyx_v_info->format[0]) =
'^';
19015 __pyx_v_offset = 0;
19024 __pyx_t_9 = __pyx_f_5numpy__util_dtypestring(__pyx_v_descr, (__pyx_v_info->format + 1), (__pyx_v_info->format + 0xFF), (&__pyx_v_offset));
if (unlikely(__pyx_t_9 == ((
char *)NULL))) __PYX_ERR(3, 332, __pyx_L1_error)
19025 __pyx_v_f = __pyx_t_9;
19034 (__pyx_v_f[0]) =
'\x00';
19049 __Pyx_XDECREF(__pyx_t_3);
19050 __Pyx_XDECREF(__pyx_t_8);
19051 __Pyx_AddTraceback(
"numpy.ndarray.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename);
19053 if (__pyx_v_info->obj != NULL) {
19054 __Pyx_GOTREF(__pyx_v_info->obj);
19055 __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
19059 if (__pyx_v_info->obj == Py_None) {
19060 __Pyx_GOTREF(__pyx_v_info->obj);
19061 __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
19064 __Pyx_XDECREF((PyObject *)__pyx_v_descr);
19065 __Pyx_RefNannyFinishContext();
19078 static CYTHON_UNUSED
void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info);
19079 static CYTHON_UNUSED
void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) {
19080 __Pyx_RefNannyDeclarations
19081 __Pyx_RefNannySetupContext(
"__releasebuffer__ (wrapper)", 0);
19082 __pyx_pf_5numpy_7ndarray_2__releasebuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info));
19085 __Pyx_RefNannyFinishContext();
19088 static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info) {
19089 __Pyx_RefNannyDeclarations
19091 __Pyx_RefNannySetupContext(
"__releasebuffer__", 0);
19100 __pyx_t_1 = (PyArray_HASFIELDS(__pyx_v_self) != 0);
19110 PyObject_Free(__pyx_v_info->format);
19128 __pyx_t_1 = (((
sizeof(npy_intp)) != (
sizeof(Py_ssize_t))) != 0);
19138 PyObject_Free(__pyx_v_info->strides);
19158 __Pyx_RefNannyFinishContext();
19169 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
19170 PyObject *__pyx_r = NULL;
19171 __Pyx_RefNannyDeclarations
19172 PyObject *__pyx_t_1 = NULL;
19173 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew1", 0);
19182 __Pyx_XDECREF(__pyx_r);
19183 __pyx_t_1 = PyArray_MultiIterNew(1, ((
void *)__pyx_v_a));
if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 822, __pyx_L1_error)
19184 __Pyx_GOTREF(__pyx_t_1);
19185 __pyx_r = __pyx_t_1;
19199 __Pyx_XDECREF(__pyx_t_1);
19200 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
19203 __Pyx_XGIVEREF(__pyx_r);
19204 __Pyx_RefNannyFinishContext();
19216 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
19217 PyObject *__pyx_r = NULL;
19218 __Pyx_RefNannyDeclarations
19219 PyObject *__pyx_t_1 = NULL;
19220 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew2", 0);
19229 __Pyx_XDECREF(__pyx_r);
19230 __pyx_t_1 = PyArray_MultiIterNew(2, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b));
if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 825, __pyx_L1_error)
19231 __Pyx_GOTREF(__pyx_t_1);
19232 __pyx_r = __pyx_t_1;
19246 __Pyx_XDECREF(__pyx_t_1);
19247 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
19250 __Pyx_XGIVEREF(__pyx_r);
19251 __Pyx_RefNannyFinishContext();
19263 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) {
19264 PyObject *__pyx_r = NULL;
19265 __Pyx_RefNannyDeclarations
19266 PyObject *__pyx_t_1 = NULL;
19267 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew3", 0);
19276 __Pyx_XDECREF(__pyx_r);
19277 __pyx_t_1 = PyArray_MultiIterNew(3, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b), ((
void *)__pyx_v_c));
if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 828, __pyx_L1_error)
19278 __Pyx_GOTREF(__pyx_t_1);
19279 __pyx_r = __pyx_t_1;
19293 __Pyx_XDECREF(__pyx_t_1);
19294 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename);
19297 __Pyx_XGIVEREF(__pyx_r);
19298 __Pyx_RefNannyFinishContext();
19310 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) {
19311 PyObject *__pyx_r = NULL;
19312 __Pyx_RefNannyDeclarations
19313 PyObject *__pyx_t_1 = NULL;
19314 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew4", 0);
19323 __Pyx_XDECREF(__pyx_r);
19324 __pyx_t_1 = PyArray_MultiIterNew(4, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b), ((
void *)__pyx_v_c), ((
void *)__pyx_v_d));
if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 831, __pyx_L1_error)
19325 __Pyx_GOTREF(__pyx_t_1);
19326 __pyx_r = __pyx_t_1;
19340 __Pyx_XDECREF(__pyx_t_1);
19341 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename);
19344 __Pyx_XGIVEREF(__pyx_r);
19345 __Pyx_RefNannyFinishContext();
19357 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) {
19358 PyObject *__pyx_r = NULL;
19359 __Pyx_RefNannyDeclarations
19360 PyObject *__pyx_t_1 = NULL;
19361 __Pyx_RefNannySetupContext(
"PyArray_MultiIterNew5", 0);
19370 __Pyx_XDECREF(__pyx_r);
19371 __pyx_t_1 = PyArray_MultiIterNew(5, ((
void *)__pyx_v_a), ((
void *)__pyx_v_b), ((
void *)__pyx_v_c), ((
void *)__pyx_v_d), ((
void *)__pyx_v_e));
if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 834, __pyx_L1_error)
19372 __Pyx_GOTREF(__pyx_t_1);
19373 __pyx_r = __pyx_t_1;
19387 __Pyx_XDECREF(__pyx_t_1);
19388 __Pyx_AddTraceback(
"numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename);
19391 __Pyx_XGIVEREF(__pyx_r);
19392 __Pyx_RefNannyFinishContext();
19404 static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__pyx_v_d) {
19405 PyObject *__pyx_r = NULL;
19406 __Pyx_RefNannyDeclarations
19408 __Pyx_RefNannySetupContext(
"PyDataType_SHAPE", 0);
19417 __pyx_t_1 = (PyDataType_HASSUBARRAY(__pyx_v_d) != 0);
19427 __Pyx_XDECREF(__pyx_r);
19428 __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
19429 __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
19449 __Pyx_XDECREF(__pyx_r);
19450 __Pyx_INCREF(__pyx_empty_tuple);
19451 __pyx_r = __pyx_empty_tuple;
19465 __Pyx_XGIVEREF(__pyx_r);
19466 __Pyx_RefNannyFinishContext();
19478 static CYTHON_INLINE
char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx_v_descr,
char *__pyx_v_f,
char *__pyx_v_end,
int *__pyx_v_offset) {
19479 PyArray_Descr *__pyx_v_child = 0;
19480 int __pyx_v_endian_detector;
19481 int __pyx_v_little_endian;
19482 PyObject *__pyx_v_fields = 0;
19483 PyObject *__pyx_v_childname = NULL;
19484 PyObject *__pyx_v_new_offset = NULL;
19485 PyObject *__pyx_v_t = NULL;
19487 __Pyx_RefNannyDeclarations
19488 PyObject *__pyx_t_1 = NULL;
19489 Py_ssize_t __pyx_t_2;
19490 PyObject *__pyx_t_3 = NULL;
19491 PyObject *__pyx_t_4 = NULL;
19497 __Pyx_RefNannySetupContext(
"_util_dtypestring", 0);
19506 __pyx_v_endian_detector = 1;
19515 __pyx_v_little_endian = ((((
char *)(&__pyx_v_endian_detector))[0]) != 0);
19524 if (unlikely(__pyx_v_descr->names == Py_None)) {
19525 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not iterable");
19526 __PYX_ERR(3, 851, __pyx_L1_error)
19528 __pyx_t_1 = __pyx_v_descr->names; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
19530 if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1))
break;
19531 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
19532 __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++;
if (unlikely(0 < 0)) __PYX_ERR(3, 851, __pyx_L1_error)
19534 __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++;
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 851, __pyx_L1_error)
19535 __Pyx_GOTREF(__pyx_t_3);
19537 __Pyx_XDECREF_SET(__pyx_v_childname, __pyx_t_3);
19547 if (unlikely(__pyx_v_descr->fields == Py_None)) {
19548 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
19549 __PYX_ERR(3, 852, __pyx_L1_error)
19551 __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_descr->fields, __pyx_v_childname);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 852, __pyx_L1_error)
19552 __Pyx_GOTREF(__pyx_t_3);
19553 if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"tuple", Py_TYPE(__pyx_t_3)->tp_name), 0))) __PYX_ERR(3, 852, __pyx_L1_error)
19554 __Pyx_XDECREF_SET(__pyx_v_fields, ((PyObject*)__pyx_t_3));
19564 if (likely(__pyx_v_fields != Py_None)) {
19565 PyObject* sequence = __pyx_v_fields;
19566 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
19567 if (unlikely(size != 2)) {
19568 if (size > 2) __Pyx_RaiseTooManyValuesError(2);
19569 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
19570 __PYX_ERR(3, 853, __pyx_L1_error)
19572 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
19573 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
19574 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1);
19575 __Pyx_INCREF(__pyx_t_3);
19576 __Pyx_INCREF(__pyx_t_4);
19578 __pyx_t_3 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 853, __pyx_L1_error)
19579 __Pyx_GOTREF(__pyx_t_3);
19580 __pyx_t_4 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 853, __pyx_L1_error)
19581 __Pyx_GOTREF(__pyx_t_4);
19584 __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(3, 853, __pyx_L1_error)
19586 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_dtype))))) __PYX_ERR(3, 853, __pyx_L1_error)
19587 __Pyx_XDECREF_SET(__pyx_v_child, ((PyArray_Descr *)__pyx_t_3));
19589 __Pyx_XDECREF_SET(__pyx_v_new_offset, __pyx_t_4);
19599 __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_offset[0]));
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 855, __pyx_L1_error)
19600 __Pyx_GOTREF(__pyx_t_4);
19601 __pyx_t_3 = PyNumber_Subtract(__pyx_v_new_offset, __pyx_t_4);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 855, __pyx_L1_error)
19602 __Pyx_GOTREF(__pyx_t_3);
19603 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
19604 __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_3);
if (unlikely((__pyx_t_5 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(3, 855, __pyx_L1_error)
19605 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
19606 __pyx_t_6 = ((((__pyx_v_end - __pyx_v_f) - ((
int)__pyx_t_5)) < 15) != 0);
19607 if (unlikely(__pyx_t_6)) {
19616 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__9, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 856, __pyx_L1_error)
19617 __Pyx_GOTREF(__pyx_t_3);
19618 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
19619 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
19620 __PYX_ERR(3, 856, __pyx_L1_error)
19638 __pyx_t_7 = ((__pyx_v_child->byteorder ==
'>') != 0);
19640 goto __pyx_L8_next_or;
19643 __pyx_t_7 = (__pyx_v_little_endian != 0);
19646 __pyx_t_6 = __pyx_t_7;
19647 goto __pyx_L7_bool_binop_done;
19658 __pyx_t_7 = ((__pyx_v_child->byteorder ==
'<') != 0);
19661 __pyx_t_6 = __pyx_t_7;
19662 goto __pyx_L7_bool_binop_done;
19664 __pyx_t_7 = ((!(__pyx_v_little_endian != 0)) != 0);
19665 __pyx_t_6 = __pyx_t_7;
19666 __pyx_L7_bool_binop_done:;
19675 if (unlikely(__pyx_t_6)) {
19684 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__8, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 860, __pyx_L1_error)
19685 __Pyx_GOTREF(__pyx_t_3);
19686 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
19687 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
19688 __PYX_ERR(3, 860, __pyx_L1_error)
19707 __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_offset[0]));
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 870, __pyx_L1_error)
19708 __Pyx_GOTREF(__pyx_t_3);
19709 __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_v_new_offset, Py_LT); __Pyx_XGOTREF(__pyx_t_4);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 870, __pyx_L1_error)
19710 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
19711 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 870, __pyx_L1_error)
19712 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
19713 if (!__pyx_t_6)
break;
19722 (__pyx_v_f[0]) = 0x78;
19731 __pyx_v_f = (__pyx_v_f + 1);
19741 (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + 1);
19752 (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + __pyx_v_child->elsize);
19761 __pyx_t_6 = ((!(PyDataType_HASFIELDS(__pyx_v_child) != 0)) != 0);
19771 __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_child->type_num);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 878, __pyx_L1_error)
19772 __Pyx_GOTREF(__pyx_t_4);
19773 __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_4);
19783 __pyx_t_6 = (((__pyx_v_end - __pyx_v_f) < 5) != 0);
19784 if (unlikely(__pyx_t_6)) {
19793 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__10, NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 880, __pyx_L1_error)
19794 __Pyx_GOTREF(__pyx_t_4);
19795 __Pyx_Raise(__pyx_t_4, 0, 0, 0);
19796 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
19797 __PYX_ERR(3, 880, __pyx_L1_error)
19815 __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_BYTE);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 883, __pyx_L1_error)
19816 __Pyx_GOTREF(__pyx_t_4);
19817 __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 883, __pyx_L1_error)
19818 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
19819 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 883, __pyx_L1_error)
19820 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
19822 (__pyx_v_f[0]) = 98;
19833 __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UBYTE);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 884, __pyx_L1_error)
19834 __Pyx_GOTREF(__pyx_t_3);
19835 __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 884, __pyx_L1_error)
19836 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
19837 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 884, __pyx_L1_error)
19838 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
19840 (__pyx_v_f[0]) = 66;
19851 __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_SHORT);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 885, __pyx_L1_error)
19852 __Pyx_GOTREF(__pyx_t_4);
19853 __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 885, __pyx_L1_error)
19854 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
19855 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 885, __pyx_L1_error)
19856 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
19858 (__pyx_v_f[0]) = 0x68;
19869 __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_USHORT);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 886, __pyx_L1_error)
19870 __Pyx_GOTREF(__pyx_t_3);
19871 __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 886, __pyx_L1_error)
19872 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
19873 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 886, __pyx_L1_error)
19874 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
19876 (__pyx_v_f[0]) = 72;
19887 __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_INT);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 887, __pyx_L1_error)
19888 __Pyx_GOTREF(__pyx_t_4);
19889 __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 887, __pyx_L1_error)
19890 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
19891 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 887, __pyx_L1_error)
19892 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
19894 (__pyx_v_f[0]) = 0x69;
19905 __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 888, __pyx_L1_error)
19906 __Pyx_GOTREF(__pyx_t_3);
19907 __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 888, __pyx_L1_error)
19908 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
19909 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 888, __pyx_L1_error)
19910 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
19912 (__pyx_v_f[0]) = 73;
19923 __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONG);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 889, __pyx_L1_error)
19924 __Pyx_GOTREF(__pyx_t_4);
19925 __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 889, __pyx_L1_error)
19926 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
19927 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 889, __pyx_L1_error)
19928 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
19930 (__pyx_v_f[0]) = 0x6C;
19941 __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONG);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 890, __pyx_L1_error)
19942 __Pyx_GOTREF(__pyx_t_3);
19943 __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 890, __pyx_L1_error)
19944 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
19945 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 890, __pyx_L1_error)
19946 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
19948 (__pyx_v_f[0]) = 76;
19959 __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGLONG);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 891, __pyx_L1_error)
19960 __Pyx_GOTREF(__pyx_t_4);
19961 __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 891, __pyx_L1_error)
19962 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
19963 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 891, __pyx_L1_error)
19964 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
19966 (__pyx_v_f[0]) = 0x71;
19977 __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONGLONG);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 892, __pyx_L1_error)
19978 __Pyx_GOTREF(__pyx_t_3);
19979 __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 892, __pyx_L1_error)
19980 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
19981 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 892, __pyx_L1_error)
19982 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
19984 (__pyx_v_f[0]) = 81;
19995 __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_FLOAT);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 893, __pyx_L1_error)
19996 __Pyx_GOTREF(__pyx_t_4);
19997 __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 893, __pyx_L1_error)
19998 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
19999 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 893, __pyx_L1_error)
20000 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
20002 (__pyx_v_f[0]) = 0x66;
20013 __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_DOUBLE);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 894, __pyx_L1_error)
20014 __Pyx_GOTREF(__pyx_t_3);
20015 __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 894, __pyx_L1_error)
20016 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
20017 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 894, __pyx_L1_error)
20018 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
20020 (__pyx_v_f[0]) = 0x64;
20031 __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGDOUBLE);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 895, __pyx_L1_error)
20032 __Pyx_GOTREF(__pyx_t_4);
20033 __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 895, __pyx_L1_error)
20034 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
20035 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 895, __pyx_L1_error)
20036 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
20038 (__pyx_v_f[0]) = 0x67;
20049 __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CFLOAT);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 896, __pyx_L1_error)
20050 __Pyx_GOTREF(__pyx_t_3);
20051 __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 896, __pyx_L1_error)
20052 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
20053 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 896, __pyx_L1_error)
20054 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
20056 (__pyx_v_f[0]) = 90;
20057 (__pyx_v_f[1]) = 0x66;
20058 __pyx_v_f = (__pyx_v_f + 1);
20069 __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CDOUBLE);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 897, __pyx_L1_error)
20070 __Pyx_GOTREF(__pyx_t_4);
20071 __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 897, __pyx_L1_error)
20072 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
20073 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 897, __pyx_L1_error)
20074 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
20076 (__pyx_v_f[0]) = 90;
20077 (__pyx_v_f[1]) = 0x64;
20078 __pyx_v_f = (__pyx_v_f + 1);
20089 __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CLONGDOUBLE);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 898, __pyx_L1_error)
20090 __Pyx_GOTREF(__pyx_t_3);
20091 __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 898, __pyx_L1_error)
20092 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
20093 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 898, __pyx_L1_error)
20094 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
20096 (__pyx_v_f[0]) = 90;
20097 (__pyx_v_f[1]) = 0x67;
20098 __pyx_v_f = (__pyx_v_f + 1);
20109 __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_OBJECT);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 899, __pyx_L1_error)
20110 __Pyx_GOTREF(__pyx_t_4);
20111 __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 899, __pyx_L1_error)
20112 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
20113 __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3);
if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(3, 899, __pyx_L1_error)
20114 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
20115 if (likely(__pyx_t_6)) {
20116 (__pyx_v_f[0]) = 79;
20128 __pyx_t_3 = __Pyx_PyUnicode_FormatSafe(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_v_t);
if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 901, __pyx_L1_error)
20129 __Pyx_GOTREF(__pyx_t_3);
20130 __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 901, __pyx_L1_error)
20131 __Pyx_GOTREF(__pyx_t_4);
20132 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
20133 __Pyx_Raise(__pyx_t_4, 0, 0, 0);
20134 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
20135 __PYX_ERR(3, 901, __pyx_L1_error)
20146 __pyx_v_f = (__pyx_v_f + 1);
20166 __pyx_t_9 = __pyx_f_5numpy__util_dtypestring(__pyx_v_child, __pyx_v_f, __pyx_v_end, __pyx_v_offset);
if (unlikely(__pyx_t_9 == ((
char *)NULL))) __PYX_ERR(3, 906, __pyx_L1_error)
20167 __pyx_v_f = __pyx_t_9;
20179 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20188 __pyx_r = __pyx_v_f;
20201 __Pyx_XDECREF(__pyx_t_1);
20202 __Pyx_XDECREF(__pyx_t_3);
20203 __Pyx_XDECREF(__pyx_t_4);
20204 __Pyx_AddTraceback(
"numpy._util_dtypestring", __pyx_clineno, __pyx_lineno, __pyx_filename);
20207 __Pyx_XDECREF((PyObject *)__pyx_v_child);
20208 __Pyx_XDECREF(__pyx_v_fields);
20209 __Pyx_XDECREF(__pyx_v_childname);
20210 __Pyx_XDECREF(__pyx_v_new_offset);
20211 __Pyx_XDECREF(__pyx_v_t);
20212 __Pyx_RefNannyFinishContext();
20224 static CYTHON_INLINE
void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) {
20225 __Pyx_RefNannyDeclarations
20226 __Pyx_RefNannySetupContext(
"set_array_base", 0);
20235 Py_INCREF(__pyx_v_base);
20244 (void)(PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base));
20255 __Pyx_RefNannyFinishContext();
20266 static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) {
20267 PyObject *__pyx_v_base;
20268 PyObject *__pyx_r = NULL;
20269 __Pyx_RefNannyDeclarations
20271 __Pyx_RefNannySetupContext(
"get_array_base", 0);
20280 __pyx_v_base = PyArray_BASE(__pyx_v_arr);
20289 __pyx_t_1 = ((__pyx_v_base == NULL) != 0);
20299 __Pyx_XDECREF(__pyx_r);
20300 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
20319 __Pyx_XDECREF(__pyx_r);
20320 __Pyx_INCREF(((PyObject *)__pyx_v_base));
20321 __pyx_r = ((PyObject *)__pyx_v_base);
20334 __Pyx_XGIVEREF(__pyx_r);
20335 __Pyx_RefNannyFinishContext();
20347 static CYTHON_INLINE
int __pyx_f_5numpy_import_array(
void) {
20349 __Pyx_RefNannyDeclarations
20350 PyObject *__pyx_t_1 = NULL;
20351 PyObject *__pyx_t_2 = NULL;
20352 PyObject *__pyx_t_3 = NULL;
20354 PyObject *__pyx_t_5 = NULL;
20355 PyObject *__pyx_t_6 = NULL;
20356 PyObject *__pyx_t_7 = NULL;
20357 PyObject *__pyx_t_8 = NULL;
20358 __Pyx_RefNannySetupContext(
"import_array", 0);
20368 __Pyx_PyThreadState_declare
20369 __Pyx_PyThreadState_assign
20370 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
20371 __Pyx_XGOTREF(__pyx_t_1);
20372 __Pyx_XGOTREF(__pyx_t_2);
20373 __Pyx_XGOTREF(__pyx_t_3);
20383 __pyx_t_4 = _import_array();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(3, 1036, __pyx_L3_error)
20393 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
20394 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
20395 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
20396 goto __pyx_L8_try_end;
20406 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
20408 __Pyx_AddTraceback(
"numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
20409 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(3, 1037, __pyx_L5_except_error)
20410 __Pyx_GOTREF(__pyx_t_5);
20411 __Pyx_GOTREF(__pyx_t_6);
20412 __Pyx_GOTREF(__pyx_t_7);
20421 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__11, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1038, __pyx_L5_except_error)
20422 __Pyx_GOTREF(__pyx_t_8);
20423 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
20424 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
20425 __PYX_ERR(3, 1038, __pyx_L5_except_error)
20427 goto __pyx_L5_except_error;
20428 __pyx_L5_except_error:;
20437 __Pyx_XGIVEREF(__pyx_t_1);
20438 __Pyx_XGIVEREF(__pyx_t_2);
20439 __Pyx_XGIVEREF(__pyx_t_3);
20440 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
20441 goto __pyx_L1_error;
20457 __Pyx_XDECREF(__pyx_t_5);
20458 __Pyx_XDECREF(__pyx_t_6);
20459 __Pyx_XDECREF(__pyx_t_7);
20460 __Pyx_XDECREF(__pyx_t_8);
20461 __Pyx_AddTraceback(
"numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
20464 __Pyx_RefNannyFinishContext();
20476 static CYTHON_INLINE
int __pyx_f_5numpy_import_umath(
void) {
20478 __Pyx_RefNannyDeclarations
20479 PyObject *__pyx_t_1 = NULL;
20480 PyObject *__pyx_t_2 = NULL;
20481 PyObject *__pyx_t_3 = NULL;
20483 PyObject *__pyx_t_5 = NULL;
20484 PyObject *__pyx_t_6 = NULL;
20485 PyObject *__pyx_t_7 = NULL;
20486 PyObject *__pyx_t_8 = NULL;
20487 __Pyx_RefNannySetupContext(
"import_umath", 0);
20497 __Pyx_PyThreadState_declare
20498 __Pyx_PyThreadState_assign
20499 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
20500 __Pyx_XGOTREF(__pyx_t_1);
20501 __Pyx_XGOTREF(__pyx_t_2);
20502 __Pyx_XGOTREF(__pyx_t_3);
20512 __pyx_t_4 = _import_umath();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(3, 1042, __pyx_L3_error)
20522 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
20523 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
20524 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
20525 goto __pyx_L8_try_end;
20535 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
20537 __Pyx_AddTraceback(
"numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
20538 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(3, 1043, __pyx_L5_except_error)
20539 __Pyx_GOTREF(__pyx_t_5);
20540 __Pyx_GOTREF(__pyx_t_6);
20541 __Pyx_GOTREF(__pyx_t_7);
20550 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__12, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1044, __pyx_L5_except_error)
20551 __Pyx_GOTREF(__pyx_t_8);
20552 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
20553 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
20554 __PYX_ERR(3, 1044, __pyx_L5_except_error)
20556 goto __pyx_L5_except_error;
20557 __pyx_L5_except_error:;
20566 __Pyx_XGIVEREF(__pyx_t_1);
20567 __Pyx_XGIVEREF(__pyx_t_2);
20568 __Pyx_XGIVEREF(__pyx_t_3);
20569 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
20570 goto __pyx_L1_error;
20586 __Pyx_XDECREF(__pyx_t_5);
20587 __Pyx_XDECREF(__pyx_t_6);
20588 __Pyx_XDECREF(__pyx_t_7);
20589 __Pyx_XDECREF(__pyx_t_8);
20590 __Pyx_AddTraceback(
"numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
20593 __Pyx_RefNannyFinishContext();
20605 static CYTHON_INLINE
int __pyx_f_5numpy_import_ufunc(
void) {
20607 __Pyx_RefNannyDeclarations
20608 PyObject *__pyx_t_1 = NULL;
20609 PyObject *__pyx_t_2 = NULL;
20610 PyObject *__pyx_t_3 = NULL;
20612 PyObject *__pyx_t_5 = NULL;
20613 PyObject *__pyx_t_6 = NULL;
20614 PyObject *__pyx_t_7 = NULL;
20615 PyObject *__pyx_t_8 = NULL;
20616 __Pyx_RefNannySetupContext(
"import_ufunc", 0);
20626 __Pyx_PyThreadState_declare
20627 __Pyx_PyThreadState_assign
20628 __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
20629 __Pyx_XGOTREF(__pyx_t_1);
20630 __Pyx_XGOTREF(__pyx_t_2);
20631 __Pyx_XGOTREF(__pyx_t_3);
20641 __pyx_t_4 = _import_umath();
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(3, 1048, __pyx_L3_error)
20651 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
20652 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
20653 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
20654 goto __pyx_L8_try_end;
20663 __pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
20665 __Pyx_AddTraceback(
"numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
20666 if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(3, 1049, __pyx_L5_except_error)
20667 __Pyx_GOTREF(__pyx_t_5);
20668 __Pyx_GOTREF(__pyx_t_6);
20669 __Pyx_GOTREF(__pyx_t_7);
20676 __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__12, NULL);
if (unlikely(!__pyx_t_8)) __PYX_ERR(3, 1050, __pyx_L5_except_error)
20677 __Pyx_GOTREF(__pyx_t_8);
20678 __Pyx_Raise(__pyx_t_8, 0, 0, 0);
20679 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
20680 __PYX_ERR(3, 1050, __pyx_L5_except_error)
20682 goto __pyx_L5_except_error;
20683 __pyx_L5_except_error:;
20692 __Pyx_XGIVEREF(__pyx_t_1);
20693 __Pyx_XGIVEREF(__pyx_t_2);
20694 __Pyx_XGIVEREF(__pyx_t_3);
20695 __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
20696 goto __pyx_L1_error;
20712 __Pyx_XDECREF(__pyx_t_5);
20713 __Pyx_XDECREF(__pyx_t_6);
20714 __Pyx_XDECREF(__pyx_t_7);
20715 __Pyx_XDECREF(__pyx_t_8);
20716 __Pyx_AddTraceback(
"numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
20719 __Pyx_RefNannyFinishContext();
20732 static int __pyx_array___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
20733 static int __pyx_array___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
20734 PyObject *__pyx_v_shape = 0;
20735 Py_ssize_t __pyx_v_itemsize;
20736 PyObject *__pyx_v_format = 0;
20737 PyObject *__pyx_v_mode = 0;
20738 int __pyx_v_allocate_buffer;
20740 __Pyx_RefNannyDeclarations
20741 __Pyx_RefNannySetupContext(
"__cinit__ (wrapper)", 0);
20743 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_shape,&__pyx_n_s_itemsize,&__pyx_n_s_format,&__pyx_n_s_mode,&__pyx_n_s_allocate_buffer,0};
20744 PyObject* values[5] = {0,0,0,0,0};
20745 values[3] = ((PyObject *)__pyx_n_s_c);
20746 if (unlikely(__pyx_kwds)) {
20747 Py_ssize_t kw_args;
20748 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
20749 switch (pos_args) {
20750 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20751 CYTHON_FALLTHROUGH;
20752 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20753 CYTHON_FALLTHROUGH;
20754 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20755 CYTHON_FALLTHROUGH;
20756 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20757 CYTHON_FALLTHROUGH;
20758 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20759 CYTHON_FALLTHROUGH;
20761 default:
goto __pyx_L5_argtuple_error;
20763 kw_args = PyDict_Size(__pyx_kwds);
20764 switch (pos_args) {
20766 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_shape)) != 0)) kw_args--;
20767 else goto __pyx_L5_argtuple_error;
20768 CYTHON_FALLTHROUGH;
20770 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_itemsize)) != 0)) kw_args--;
20772 __Pyx_RaiseArgtupleInvalid(
"__cinit__", 0, 3, 5, 1); __PYX_ERR(0, 122, __pyx_L3_error)
20774 CYTHON_FALLTHROUGH;
20776 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format)) != 0)) kw_args--;
20778 __Pyx_RaiseArgtupleInvalid(
"__cinit__", 0, 3, 5, 2); __PYX_ERR(0, 122, __pyx_L3_error)
20780 CYTHON_FALLTHROUGH;
20783 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_mode);
20784 if (value) { values[3] = value; kw_args--; }
20786 CYTHON_FALLTHROUGH;
20789 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_allocate_buffer);
20790 if (value) { values[4] = value; kw_args--; }
20793 if (unlikely(kw_args > 0)) {
20794 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__cinit__") < 0)) __PYX_ERR(0, 122, __pyx_L3_error)
20797 switch (PyTuple_GET_SIZE(__pyx_args)) {
20798 case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
20799 CYTHON_FALLTHROUGH;
20800 case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
20801 CYTHON_FALLTHROUGH;
20802 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
20803 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
20804 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
20806 default:
goto __pyx_L5_argtuple_error;
20809 __pyx_v_shape = ((PyObject*)values[0]);
20810 __pyx_v_itemsize = __Pyx_PyIndex_AsSsize_t(values[1]);
if (unlikely((__pyx_v_itemsize == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 122, __pyx_L3_error)
20811 __pyx_v_format = values[2];
20812 __pyx_v_mode = values[3];
20814 __pyx_v_allocate_buffer = __Pyx_PyObject_IsTrue(values[4]);
if (unlikely((__pyx_v_allocate_buffer == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 123, __pyx_L3_error)
20824 __pyx_v_allocate_buffer = ((int)1);
20827 goto __pyx_L4_argument_unpacking_done;
20828 __pyx_L5_argtuple_error:;
20829 __Pyx_RaiseArgtupleInvalid(
"__cinit__", 0, 3, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 122, __pyx_L3_error)
20831 __Pyx_AddTraceback(
"View.MemoryView.array.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
20832 __Pyx_RefNannyFinishContext();
20834 __pyx_L4_argument_unpacking_done:;
20835 if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_shape), (&PyTuple_Type), 1,
"shape", 1))) __PYX_ERR(0, 122, __pyx_L1_error)
20836 if (unlikely(((PyObject *)__pyx_v_format) == Py_None)) {
20837 PyErr_Format(PyExc_TypeError,
"Argument '%.200s' must not be None",
"format"); __PYX_ERR(0, 122, __pyx_L1_error)
20839 __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(((
struct __pyx_array_obj *)__pyx_v_self), __pyx_v_shape, __pyx_v_itemsize, __pyx_v_format, __pyx_v_mode, __pyx_v_allocate_buffer);
20854 __Pyx_RefNannyFinishContext();
20858 static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(
struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_shape, Py_ssize_t __pyx_v_itemsize, PyObject *__pyx_v_format, PyObject *__pyx_v_mode,
int __pyx_v_allocate_buffer) {
20860 Py_ssize_t __pyx_v_i;
20861 Py_ssize_t __pyx_v_dim;
20862 PyObject **__pyx_v_p;
20863 char __pyx_v_order;
20865 __Pyx_RefNannyDeclarations
20866 Py_ssize_t __pyx_t_1;
20868 PyObject *__pyx_t_3 = NULL;
20870 PyObject *__pyx_t_5 = NULL;
20871 PyObject *__pyx_t_6 = NULL;
20874 Py_ssize_t __pyx_t_9;
20875 PyObject *__pyx_t_10 = NULL;
20876 Py_ssize_t __pyx_t_11;
20877 __Pyx_RefNannySetupContext(
"__cinit__", 0);
20878 __Pyx_INCREF(__pyx_v_format);
20887 if (unlikely(__pyx_v_shape == Py_None)) {
20888 PyErr_SetString(PyExc_TypeError,
"object of type 'NoneType' has no len()");
20889 __PYX_ERR(0, 129, __pyx_L1_error)
20891 __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v_shape);
if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 129, __pyx_L1_error)
20892 __pyx_v_self->ndim = ((int)__pyx_t_1);
20901 __pyx_v_self->itemsize = __pyx_v_itemsize;
20910 __pyx_t_2 = ((!(__pyx_v_self->ndim != 0)) != 0);
20911 if (unlikely(__pyx_t_2)) {
20920 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__13, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 133, __pyx_L1_error)
20921 __Pyx_GOTREF(__pyx_t_3);
20922 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
20923 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
20924 __PYX_ERR(0, 133, __pyx_L1_error)
20942 __pyx_t_2 = ((__pyx_v_itemsize <= 0) != 0);
20943 if (unlikely(__pyx_t_2)) {
20952 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__14, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 136, __pyx_L1_error)
20953 __Pyx_GOTREF(__pyx_t_3);
20954 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
20955 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
20956 __PYX_ERR(0, 136, __pyx_L1_error)
20974 __pyx_t_2 = PyBytes_Check(__pyx_v_format);
20975 __pyx_t_4 = ((!(__pyx_t_2 != 0)) != 0);
20985 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_format, __pyx_n_s_encode);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 139, __pyx_L1_error)
20986 __Pyx_GOTREF(__pyx_t_5);
20988 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
20989 __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
20990 if (likely(__pyx_t_6)) {
20991 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
20992 __Pyx_INCREF(__pyx_t_6);
20993 __Pyx_INCREF(
function);
20994 __Pyx_DECREF_SET(__pyx_t_5,
function);
20997 __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_n_s_ASCII) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_n_s_ASCII);
20998 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
20999 if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 139, __pyx_L1_error)
21000 __Pyx_GOTREF(__pyx_t_3);
21001 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
21002 __Pyx_DECREF_SET(__pyx_v_format, __pyx_t_3);
21021 if (!(likely(PyBytes_CheckExact(__pyx_v_format))||((__pyx_v_format) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"bytes", Py_TYPE(__pyx_v_format)->tp_name), 0))) __PYX_ERR(0, 140, __pyx_L1_error)
21022 __pyx_t_3 = __pyx_v_format;
21023 __Pyx_INCREF(__pyx_t_3);
21024 __Pyx_GIVEREF(__pyx_t_3);
21025 __Pyx_GOTREF(__pyx_v_self->_format);
21026 __Pyx_DECREF(__pyx_v_self->_format);
21027 __pyx_v_self->_format = ((PyObject*)__pyx_t_3);
21037 if (unlikely(__pyx_v_self->_format == Py_None)) {
21038 PyErr_SetString(PyExc_TypeError,
"expected bytes, NoneType found");
21039 __PYX_ERR(0, 141, __pyx_L1_error)
21041 __pyx_t_7 = __Pyx_PyBytes_AsWritableString(__pyx_v_self->_format);
if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(0, 141, __pyx_L1_error)
21042 __pyx_v_self->format = __pyx_t_7;
21051 __pyx_v_self->_shape = ((Py_ssize_t *)PyObject_Malloc((((
sizeof(Py_ssize_t)) * __pyx_v_self->ndim) * 2)));
21060 __pyx_v_self->_strides = (__pyx_v_self->_shape + __pyx_v_self->ndim);
21069 __pyx_t_4 = ((!(__pyx_v_self->_shape != 0)) != 0);
21070 if (unlikely(__pyx_t_4)) {
21079 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__15, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 148, __pyx_L1_error)
21080 __Pyx_GOTREF(__pyx_t_3);
21081 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
21082 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
21083 __PYX_ERR(0, 148, __pyx_L1_error)
21102 __pyx_t_3 = __pyx_v_shape; __Pyx_INCREF(__pyx_t_3); __pyx_t_1 = 0;
21104 if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_3))
break;
21105 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
21106 __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_1); __Pyx_INCREF(__pyx_t_5); __pyx_t_1++;
if (unlikely(0 < 0)) __PYX_ERR(0, 151, __pyx_L1_error)
21108 __pyx_t_5 = PySequence_ITEM(__pyx_t_3, __pyx_t_1); __pyx_t_1++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 151, __pyx_L1_error)
21109 __Pyx_GOTREF(__pyx_t_5);
21111 __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_t_5);
if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 151, __pyx_L1_error)
21112 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
21113 __pyx_v_dim = __pyx_t_9;
21114 __pyx_v_idx = __pyx_t_8;
21115 __pyx_t_8 = (__pyx_t_8 + 1);
21124 __pyx_t_4 = ((__pyx_v_dim <= 0) != 0);
21125 if (unlikely(__pyx_t_4)) {
21134 __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_idx);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 153, __pyx_L1_error)
21135 __Pyx_GOTREF(__pyx_t_5);
21136 __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_dim);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 153, __pyx_L1_error)
21137 __Pyx_GOTREF(__pyx_t_6);
21138 __pyx_t_10 = PyTuple_New(2);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 153, __pyx_L1_error)
21139 __Pyx_GOTREF(__pyx_t_10);
21140 __Pyx_GIVEREF(__pyx_t_5);
21141 PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_5);
21142 __Pyx_GIVEREF(__pyx_t_6);
21143 PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_6);
21146 __pyx_t_6 = __Pyx_PyString_Format(__pyx_kp_s_Invalid_shape_in_axis_d_d, __pyx_t_10);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 153, __pyx_L1_error)
21147 __Pyx_GOTREF(__pyx_t_6);
21148 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
21149 __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_6);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 153, __pyx_L1_error)
21150 __Pyx_GOTREF(__pyx_t_10);
21151 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
21152 __Pyx_Raise(__pyx_t_10, 0, 0, 0);
21153 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
21154 __PYX_ERR(0, 153, __pyx_L1_error)
21172 (__pyx_v_self->_shape[__pyx_v_idx]) = __pyx_v_dim;
21182 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
21191 __pyx_t_4 = (__Pyx_PyString_Equals(__pyx_v_mode, __pyx_n_s_fortran, Py_EQ));
if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 157, __pyx_L1_error)
21201 __pyx_v_order =
'F';
21210 __Pyx_INCREF(__pyx_n_u_fortran);
21211 __Pyx_GIVEREF(__pyx_n_u_fortran);
21212 __Pyx_GOTREF(__pyx_v_self->mode);
21213 __Pyx_DECREF(__pyx_v_self->mode);
21214 __pyx_v_self->mode = __pyx_n_u_fortran;
21233 __pyx_t_4 = (__Pyx_PyString_Equals(__pyx_v_mode, __pyx_n_s_c, Py_EQ));
if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 160, __pyx_L1_error)
21234 if (likely(__pyx_t_4)) {
21243 __pyx_v_order =
'C';
21252 __Pyx_INCREF(__pyx_n_u_c);
21253 __Pyx_GIVEREF(__pyx_n_u_c);
21254 __Pyx_GOTREF(__pyx_v_self->mode);
21255 __Pyx_DECREF(__pyx_v_self->mode);
21256 __pyx_v_self->mode = __pyx_n_u_c;
21276 __pyx_t_3 = __Pyx_PyString_FormatSafe(__pyx_kp_s_Invalid_mode_expected_c_or_fortr, __pyx_v_mode);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 164, __pyx_L1_error)
21277 __Pyx_GOTREF(__pyx_t_3);
21278 __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 164, __pyx_L1_error)
21279 __Pyx_GOTREF(__pyx_t_10);
21280 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
21281 __Pyx_Raise(__pyx_t_10, 0, 0, 0);
21282 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
21283 __PYX_ERR(0, 164, __pyx_L1_error)
21294 __pyx_v_self->len = __pyx_fill_contig_strides_array(__pyx_v_self->_shape, __pyx_v_self->_strides, __pyx_v_itemsize, __pyx_v_self->ndim, __pyx_v_order);
21303 __pyx_v_self->free_data = __pyx_v_allocate_buffer;
21312 __pyx_t_10 = PyObject_RichCompare(__pyx_v_format, __pyx_n_b_O, Py_EQ); __Pyx_XGOTREF(__pyx_t_10);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 170, __pyx_L1_error)
21313 __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_10);
if (unlikely((__pyx_t_4 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 170, __pyx_L1_error)
21314 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
21315 __pyx_v_self->dtype_is_object = __pyx_t_4;
21324 __pyx_t_4 = (__pyx_v_allocate_buffer != 0);
21334 __pyx_v_self->data = ((
char *)malloc(__pyx_v_self->len));
21343 __pyx_t_4 = ((!(__pyx_v_self->data != 0)) != 0);
21344 if (unlikely(__pyx_t_4)) {
21353 __pyx_t_10 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple__16, NULL);
if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 176, __pyx_L1_error)
21354 __Pyx_GOTREF(__pyx_t_10);
21355 __Pyx_Raise(__pyx_t_10, 0, 0, 0);
21356 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
21357 __PYX_ERR(0, 176, __pyx_L1_error)
21375 __pyx_t_4 = (__pyx_v_self->dtype_is_object != 0);
21385 __pyx_v_p = ((PyObject **)__pyx_v_self->data);
21394 if (unlikely(__pyx_v_itemsize == 0)) {
21395 PyErr_SetString(PyExc_ZeroDivisionError,
"integer division or modulo by zero");
21396 __PYX_ERR(0, 180, __pyx_L1_error)
21398 else if (
sizeof(Py_ssize_t) ==
sizeof(
long) && (!(((Py_ssize_t)-1) > 0)) && unlikely(__pyx_v_itemsize == (Py_ssize_t)-1) && unlikely(UNARY_NEG_WOULD_OVERFLOW(__pyx_v_self->len))) {
21399 PyErr_SetString(PyExc_OverflowError,
"value too large to perform division");
21400 __PYX_ERR(0, 180, __pyx_L1_error)
21402 __pyx_t_1 = __Pyx_div_Py_ssize_t(__pyx_v_self->len, __pyx_v_itemsize);
21403 __pyx_t_9 = __pyx_t_1;
21404 for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_9; __pyx_t_11+=1) {
21405 __pyx_v_i = __pyx_t_11;
21414 (__pyx_v_p[__pyx_v_i]) = Py_None;
21423 Py_INCREF(Py_None);
21456 __Pyx_XDECREF(__pyx_t_3);
21457 __Pyx_XDECREF(__pyx_t_5);
21458 __Pyx_XDECREF(__pyx_t_6);
21459 __Pyx_XDECREF(__pyx_t_10);
21460 __Pyx_AddTraceback(
"View.MemoryView.array.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
21463 __Pyx_XDECREF(__pyx_v_format);
21464 __Pyx_RefNannyFinishContext();
21477 static CYTHON_UNUSED
int __pyx_array_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags);
21478 static CYTHON_UNUSED
int __pyx_array_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags) {
21480 __Pyx_RefNannyDeclarations
21481 __Pyx_RefNannySetupContext(
"__getbuffer__ (wrapper)", 0);
21482 __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(((
struct __pyx_array_obj *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((
int)__pyx_v_flags));
21485 __Pyx_RefNannyFinishContext();
21489 static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(
struct __pyx_array_obj *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags) {
21490 int __pyx_v_bufmode;
21492 __Pyx_RefNannyDeclarations
21495 PyObject *__pyx_t_3 = NULL;
21497 Py_ssize_t __pyx_t_5;
21499 Py_ssize_t *__pyx_t_7;
21500 if (__pyx_v_info == NULL) {
21501 PyErr_SetString(PyExc_BufferError,
"PyObject_GetBuffer: view==NULL argument is obsolete");
21504 __Pyx_RefNannySetupContext(
"__getbuffer__", 0);
21505 __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None);
21506 __Pyx_GIVEREF(__pyx_v_info->obj);
21515 __pyx_v_bufmode = -1;
21524 __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_self->mode, __pyx_n_u_c, Py_EQ));
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 187, __pyx_L1_error)
21525 __pyx_t_2 = (__pyx_t_1 != 0);
21535 __pyx_v_bufmode = (PyBUF_C_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS);
21554 __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_self->mode, __pyx_n_u_fortran, Py_EQ));
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 189, __pyx_L1_error)
21555 __pyx_t_1 = (__pyx_t_2 != 0);
21565 __pyx_v_bufmode = (PyBUF_F_CONTIGUOUS | PyBUF_ANY_CONTIGUOUS);
21584 __pyx_t_1 = ((!((__pyx_v_flags & __pyx_v_bufmode) != 0)) != 0);
21585 if (unlikely(__pyx_t_1)) {
21594 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__17, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 192, __pyx_L1_error)
21595 __Pyx_GOTREF(__pyx_t_3);
21596 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
21597 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
21598 __PYX_ERR(0, 192, __pyx_L1_error)
21616 __pyx_t_4 = __pyx_v_self->data;
21617 __pyx_v_info->buf = __pyx_t_4;
21626 __pyx_t_5 = __pyx_v_self->len;
21627 __pyx_v_info->len = __pyx_t_5;
21636 __pyx_t_6 = __pyx_v_self->ndim;
21637 __pyx_v_info->ndim = __pyx_t_6;
21646 __pyx_t_7 = __pyx_v_self->_shape;
21647 __pyx_v_info->shape = __pyx_t_7;
21656 __pyx_t_7 = __pyx_v_self->_strides;
21657 __pyx_v_info->strides = __pyx_t_7;
21666 __pyx_v_info->suboffsets = NULL;
21675 __pyx_t_5 = __pyx_v_self->itemsize;
21676 __pyx_v_info->itemsize = __pyx_t_5;
21685 __pyx_v_info->readonly = 0;
21694 __pyx_t_1 = ((__pyx_v_flags & PyBUF_FORMAT) != 0);
21704 __pyx_t_4 = __pyx_v_self->format;
21705 __pyx_v_info->format = __pyx_t_4;
21725 __pyx_v_info->format = NULL;
21736 __Pyx_INCREF(((PyObject *)__pyx_v_self));
21737 __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
21738 __Pyx_GOTREF(__pyx_v_info->obj);
21739 __Pyx_DECREF(__pyx_v_info->obj);
21740 __pyx_v_info->obj = ((PyObject *)__pyx_v_self);
21754 __Pyx_XDECREF(__pyx_t_3);
21755 __Pyx_AddTraceback(
"View.MemoryView.array.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename);
21757 if (__pyx_v_info->obj != NULL) {
21758 __Pyx_GOTREF(__pyx_v_info->obj);
21759 __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
21763 if (__pyx_v_info->obj == Py_None) {
21764 __Pyx_GOTREF(__pyx_v_info->obj);
21765 __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
21768 __Pyx_RefNannyFinishContext();
21781 static void __pyx_array___dealloc__(PyObject *__pyx_v_self);
21782 static void __pyx_array___dealloc__(PyObject *__pyx_v_self) {
21783 __Pyx_RefNannyDeclarations
21784 __Pyx_RefNannySetupContext(
"__dealloc__ (wrapper)", 0);
21785 __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(((
struct __pyx_array_obj *)__pyx_v_self));
21788 __Pyx_RefNannyFinishContext();
21791 static void __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(
struct __pyx_array_obj *__pyx_v_self) {
21792 __Pyx_RefNannyDeclarations
21794 __Pyx_RefNannySetupContext(
"__dealloc__", 0);
21803 __pyx_t_1 = ((__pyx_v_self->callback_free_data != NULL) != 0);
21813 __pyx_v_self->callback_free_data(__pyx_v_self->data);
21832 __pyx_t_1 = (__pyx_v_self->free_data != 0);
21842 __pyx_t_1 = (__pyx_v_self->dtype_is_object != 0);
21852 __pyx_memoryview_refcount_objects_in_slice(__pyx_v_self->data, __pyx_v_self->_shape, __pyx_v_self->_strides, __pyx_v_self->ndim, 0);
21870 free(__pyx_v_self->data);
21889 PyObject_Free(__pyx_v_self->_shape);
21900 __Pyx_RefNannyFinishContext();
21912 static PyObject *__pyx_pw_15View_dot_MemoryView_5array_7memview_1__get__(PyObject *__pyx_v_self);
21913 static PyObject *__pyx_pw_15View_dot_MemoryView_5array_7memview_1__get__(PyObject *__pyx_v_self) {
21914 PyObject *__pyx_r = 0;
21915 __Pyx_RefNannyDeclarations
21916 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
21917 __pyx_r = __pyx_pf_15View_dot_MemoryView_5array_7memview___get__(((
struct __pyx_array_obj *)__pyx_v_self));
21920 __Pyx_RefNannyFinishContext();
21924 static PyObject *__pyx_pf_15View_dot_MemoryView_5array_7memview___get__(
struct __pyx_array_obj *__pyx_v_self) {
21925 PyObject *__pyx_r = NULL;
21926 __Pyx_RefNannyDeclarations
21927 PyObject *__pyx_t_1 = NULL;
21928 __Pyx_RefNannySetupContext(
"__get__", 0);
21937 __Pyx_XDECREF(__pyx_r);
21938 __pyx_t_1 = ((
struct __pyx_vtabstruct_array *)__pyx_v_self->__pyx_vtab)->get_memview(__pyx_v_self);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 223, __pyx_L1_error)
21939 __Pyx_GOTREF(__pyx_t_1);
21940 __pyx_r = __pyx_t_1;
21954 __Pyx_XDECREF(__pyx_t_1);
21955 __Pyx_AddTraceback(
"View.MemoryView.array.memview.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
21958 __Pyx_XGIVEREF(__pyx_r);
21959 __Pyx_RefNannyFinishContext();
21971 static PyObject *__pyx_array_get_memview(
struct __pyx_array_obj *__pyx_v_self) {
21973 PyObject *__pyx_r = NULL;
21974 __Pyx_RefNannyDeclarations
21975 PyObject *__pyx_t_1 = NULL;
21976 PyObject *__pyx_t_2 = NULL;
21977 PyObject *__pyx_t_3 = NULL;
21978 __Pyx_RefNannySetupContext(
"get_memview", 0);
21987 __pyx_v_flags = ((PyBUF_ANY_CONTIGUOUS | PyBUF_FORMAT) | PyBUF_WRITABLE);
21996 __Pyx_XDECREF(__pyx_r);
21997 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_flags);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 228, __pyx_L1_error)
21998 __Pyx_GOTREF(__pyx_t_1);
21999 __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_self->dtype_is_object);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 228, __pyx_L1_error)
22000 __Pyx_GOTREF(__pyx_t_2);
22001 __pyx_t_3 = PyTuple_New(3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 228, __pyx_L1_error)
22002 __Pyx_GOTREF(__pyx_t_3);
22003 __Pyx_INCREF(((PyObject *)__pyx_v_self));
22004 __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
22005 PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self));
22006 __Pyx_GIVEREF(__pyx_t_1);
22007 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
22008 __Pyx_GIVEREF(__pyx_t_2);
22009 PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2);
22012 __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_memoryview_type), __pyx_t_3, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 228, __pyx_L1_error)
22013 __Pyx_GOTREF(__pyx_t_2);
22014 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
22015 __pyx_r = __pyx_t_2;
22029 __Pyx_XDECREF(__pyx_t_1);
22030 __Pyx_XDECREF(__pyx_t_2);
22031 __Pyx_XDECREF(__pyx_t_3);
22032 __Pyx_AddTraceback(
"View.MemoryView.array.get_memview", __pyx_clineno, __pyx_lineno, __pyx_filename);
22035 __Pyx_XGIVEREF(__pyx_r);
22036 __Pyx_RefNannyFinishContext();
22049 static Py_ssize_t __pyx_array___len__(PyObject *__pyx_v_self);
22050 static Py_ssize_t __pyx_array___len__(PyObject *__pyx_v_self) {
22051 Py_ssize_t __pyx_r;
22052 __Pyx_RefNannyDeclarations
22053 __Pyx_RefNannySetupContext(
"__len__ (wrapper)", 0);
22054 __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(((
struct __pyx_array_obj *)__pyx_v_self));
22057 __Pyx_RefNannyFinishContext();
22061 static Py_ssize_t __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(
struct __pyx_array_obj *__pyx_v_self) {
22062 Py_ssize_t __pyx_r;
22063 __Pyx_RefNannyDeclarations
22064 __Pyx_RefNannySetupContext(
"__len__", 0);
22073 __pyx_r = (__pyx_v_self->_shape[0]);
22086 __Pyx_RefNannyFinishContext();
22099 static PyObject *__pyx_array___getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_attr);
22100 static PyObject *__pyx_array___getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_attr) {
22101 PyObject *__pyx_r = 0;
22102 __Pyx_RefNannyDeclarations
22103 __Pyx_RefNannySetupContext(
"__getattr__ (wrapper)", 0);
22104 __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_8__getattr__(((
struct __pyx_array_obj *)__pyx_v_self), ((PyObject *)__pyx_v_attr));
22107 __Pyx_RefNannyFinishContext();
22111 static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_8__getattr__(
struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_attr) {
22112 PyObject *__pyx_r = NULL;
22113 __Pyx_RefNannyDeclarations
22114 PyObject *__pyx_t_1 = NULL;
22115 PyObject *__pyx_t_2 = NULL;
22116 __Pyx_RefNannySetupContext(
"__getattr__", 0);
22125 __Pyx_XDECREF(__pyx_r);
22126 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memview);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 234, __pyx_L1_error)
22127 __Pyx_GOTREF(__pyx_t_1);
22128 __pyx_t_2 = __Pyx_GetAttr(__pyx_t_1, __pyx_v_attr);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 234, __pyx_L1_error)
22129 __Pyx_GOTREF(__pyx_t_2);
22130 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22131 __pyx_r = __pyx_t_2;
22145 __Pyx_XDECREF(__pyx_t_1);
22146 __Pyx_XDECREF(__pyx_t_2);
22147 __Pyx_AddTraceback(
"View.MemoryView.array.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
22150 __Pyx_XGIVEREF(__pyx_r);
22151 __Pyx_RefNannyFinishContext();
22164 static PyObject *__pyx_array___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item);
22165 static PyObject *__pyx_array___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item) {
22166 PyObject *__pyx_r = 0;
22167 __Pyx_RefNannyDeclarations
22168 __Pyx_RefNannySetupContext(
"__getitem__ (wrapper)", 0);
22169 __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_10__getitem__(((
struct __pyx_array_obj *)__pyx_v_self), ((PyObject *)__pyx_v_item));
22172 __Pyx_RefNannyFinishContext();
22176 static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_10__getitem__(
struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item) {
22177 PyObject *__pyx_r = NULL;
22178 __Pyx_RefNannyDeclarations
22179 PyObject *__pyx_t_1 = NULL;
22180 PyObject *__pyx_t_2 = NULL;
22181 __Pyx_RefNannySetupContext(
"__getitem__", 0);
22190 __Pyx_XDECREF(__pyx_r);
22191 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memview);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 237, __pyx_L1_error)
22192 __Pyx_GOTREF(__pyx_t_1);
22193 __pyx_t_2 = __Pyx_PyObject_GetItem(__pyx_t_1, __pyx_v_item);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 237, __pyx_L1_error)
22194 __Pyx_GOTREF(__pyx_t_2);
22195 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22196 __pyx_r = __pyx_t_2;
22210 __Pyx_XDECREF(__pyx_t_1);
22211 __Pyx_XDECREF(__pyx_t_2);
22212 __Pyx_AddTraceback(
"View.MemoryView.array.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
22215 __Pyx_XGIVEREF(__pyx_r);
22216 __Pyx_RefNannyFinishContext();
22229 static int __pyx_array___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item, PyObject *__pyx_v_value);
22230 static int __pyx_array___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_item, PyObject *__pyx_v_value) {
22232 __Pyx_RefNannyDeclarations
22233 __Pyx_RefNannySetupContext(
"__setitem__ (wrapper)", 0);
22234 __pyx_r = __pyx_array___pyx_pf_15View_dot_MemoryView_5array_12__setitem__(((
struct __pyx_array_obj *)__pyx_v_self), ((PyObject *)__pyx_v_item), ((PyObject *)__pyx_v_value));
22237 __Pyx_RefNannyFinishContext();
22241 static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_12__setitem__(
struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item, PyObject *__pyx_v_value) {
22243 __Pyx_RefNannyDeclarations
22244 PyObject *__pyx_t_1 = NULL;
22245 __Pyx_RefNannySetupContext(
"__setitem__", 0);
22254 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_memview);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 240, __pyx_L1_error)
22255 __Pyx_GOTREF(__pyx_t_1);
22256 if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_v_item, __pyx_v_value) < 0)) __PYX_ERR(0, 240, __pyx_L1_error)
22257 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22271 __Pyx_XDECREF(__pyx_t_1);
22272 __Pyx_AddTraceback(
"View.MemoryView.array.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
22275 __Pyx_RefNannyFinishContext();
22286 static PyObject *__pyx_pw___pyx_array_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
22287 static PyObject *__pyx_pw___pyx_array_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
22288 PyObject *__pyx_r = 0;
22289 __Pyx_RefNannyDeclarations
22290 __Pyx_RefNannySetupContext(
"__reduce_cython__ (wrapper)", 0);
22291 __pyx_r = __pyx_pf___pyx_array___reduce_cython__(((
struct __pyx_array_obj *)__pyx_v_self));
22294 __Pyx_RefNannyFinishContext();
22298 static PyObject *__pyx_pf___pyx_array___reduce_cython__(CYTHON_UNUSED
struct __pyx_array_obj *__pyx_v_self) {
22299 PyObject *__pyx_r = NULL;
22300 __Pyx_RefNannyDeclarations
22301 PyObject *__pyx_t_1 = NULL;
22302 __Pyx_RefNannySetupContext(
"__reduce_cython__", 0);
22310 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__18, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error)
22311 __Pyx_GOTREF(__pyx_t_1);
22312 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
22313 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22314 __PYX_ERR(0, 2, __pyx_L1_error)
22324 __Pyx_XDECREF(__pyx_t_1);
22325 __Pyx_AddTraceback(
"View.MemoryView.array.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
22327 __Pyx_XGIVEREF(__pyx_r);
22328 __Pyx_RefNannyFinishContext();
22340 static PyObject *__pyx_pw___pyx_array_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state);
22341 static PyObject *__pyx_pw___pyx_array_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
22342 PyObject *__pyx_r = 0;
22343 __Pyx_RefNannyDeclarations
22344 __Pyx_RefNannySetupContext(
"__setstate_cython__ (wrapper)", 0);
22345 __pyx_r = __pyx_pf___pyx_array_2__setstate_cython__(((
struct __pyx_array_obj *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
22348 __Pyx_RefNannyFinishContext();
22352 static PyObject *__pyx_pf___pyx_array_2__setstate_cython__(CYTHON_UNUSED
struct __pyx_array_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
22353 PyObject *__pyx_r = NULL;
22354 __Pyx_RefNannyDeclarations
22355 PyObject *__pyx_t_1 = NULL;
22356 __Pyx_RefNannySetupContext(
"__setstate_cython__", 0);
22363 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__19, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4, __pyx_L1_error)
22364 __Pyx_GOTREF(__pyx_t_1);
22365 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
22366 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22367 __PYX_ERR(0, 4, __pyx_L1_error)
22378 __Pyx_XDECREF(__pyx_t_1);
22379 __Pyx_AddTraceback(
"View.MemoryView.array.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
22381 __Pyx_XGIVEREF(__pyx_r);
22382 __Pyx_RefNannyFinishContext();
22394 static struct __pyx_array_obj *__pyx_array_new(PyObject *__pyx_v_shape, Py_ssize_t __pyx_v_itemsize,
char *__pyx_v_format,
char *__pyx_v_mode,
char *__pyx_v_buf) {
22395 struct __pyx_array_obj *__pyx_v_result = 0;
22396 struct __pyx_array_obj *__pyx_r = NULL;
22397 __Pyx_RefNannyDeclarations
22399 PyObject *__pyx_t_2 = NULL;
22400 PyObject *__pyx_t_3 = NULL;
22401 PyObject *__pyx_t_4 = NULL;
22402 PyObject *__pyx_t_5 = NULL;
22403 __Pyx_RefNannySetupContext(
"array_cwrapper", 0);
22412 __pyx_t_1 = ((__pyx_v_buf == NULL) != 0);
22422 __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_itemsize);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 249, __pyx_L1_error)
22423 __Pyx_GOTREF(__pyx_t_2);
22424 __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_format);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 249, __pyx_L1_error)
22425 __Pyx_GOTREF(__pyx_t_3);
22426 __pyx_t_4 = __Pyx_decode_c_string(__pyx_v_mode, 0, strlen(__pyx_v_mode), NULL, NULL, PyUnicode_DecodeASCII);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 249, __pyx_L1_error)
22427 __Pyx_GOTREF(__pyx_t_4);
22428 __pyx_t_5 = PyTuple_New(4);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 249, __pyx_L1_error)
22429 __Pyx_GOTREF(__pyx_t_5);
22430 __Pyx_INCREF(__pyx_v_shape);
22431 __Pyx_GIVEREF(__pyx_v_shape);
22432 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_shape);
22433 __Pyx_GIVEREF(__pyx_t_2);
22434 PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
22435 __Pyx_GIVEREF(__pyx_t_3);
22436 PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3);
22437 __Pyx_GIVEREF(__pyx_t_4);
22438 PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4);
22442 __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_array_type), __pyx_t_5, NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 249, __pyx_L1_error)
22443 __Pyx_GOTREF(__pyx_t_4);
22444 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
22445 __pyx_v_result = ((
struct __pyx_array_obj *)__pyx_t_4);
22466 __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_itemsize);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 251, __pyx_L1_error)
22467 __Pyx_GOTREF(__pyx_t_4);
22468 __pyx_t_5 = __Pyx_PyBytes_FromString(__pyx_v_format);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 251, __pyx_L1_error)
22469 __Pyx_GOTREF(__pyx_t_5);
22470 __pyx_t_3 = __Pyx_decode_c_string(__pyx_v_mode, 0, strlen(__pyx_v_mode), NULL, NULL, PyUnicode_DecodeASCII);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 251, __pyx_L1_error)
22471 __Pyx_GOTREF(__pyx_t_3);
22472 __pyx_t_2 = PyTuple_New(4);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 251, __pyx_L1_error)
22473 __Pyx_GOTREF(__pyx_t_2);
22474 __Pyx_INCREF(__pyx_v_shape);
22475 __Pyx_GIVEREF(__pyx_v_shape);
22476 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_shape);
22477 __Pyx_GIVEREF(__pyx_t_4);
22478 PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
22479 __Pyx_GIVEREF(__pyx_t_5);
22480 PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_5);
22481 __Pyx_GIVEREF(__pyx_t_3);
22482 PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
22494 __pyx_t_3 = __Pyx_PyDict_NewPresized(1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 252, __pyx_L1_error)
22495 __Pyx_GOTREF(__pyx_t_3);
22496 if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_allocate_buffer, Py_False) < 0) __PYX_ERR(0, 252, __pyx_L1_error)
22505 __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_array_type), __pyx_t_2, __pyx_t_3);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 251, __pyx_L1_error)
22506 __Pyx_GOTREF(__pyx_t_5);
22507 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
22508 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
22509 __pyx_v_result = ((
struct __pyx_array_obj *)__pyx_t_5);
22519 __pyx_v_result->data = __pyx_v_buf;
22530 __Pyx_XDECREF(((PyObject *)__pyx_r));
22531 __Pyx_INCREF(((PyObject *)__pyx_v_result));
22532 __pyx_r = __pyx_v_result;
22545 __Pyx_XDECREF(__pyx_t_2);
22546 __Pyx_XDECREF(__pyx_t_3);
22547 __Pyx_XDECREF(__pyx_t_4);
22548 __Pyx_XDECREF(__pyx_t_5);
22549 __Pyx_AddTraceback(
"View.MemoryView.array_cwrapper", __pyx_clineno, __pyx_lineno, __pyx_filename);
22552 __Pyx_XDECREF((PyObject *)__pyx_v_result);
22553 __Pyx_XGIVEREF((PyObject *)__pyx_r);
22554 __Pyx_RefNannyFinishContext();
22567 static int __pyx_MemviewEnum___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
22568 static int __pyx_MemviewEnum___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
22569 PyObject *__pyx_v_name = 0;
22571 __Pyx_RefNannyDeclarations
22572 __Pyx_RefNannySetupContext(
"__init__ (wrapper)", 0);
22574 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name,0};
22575 PyObject* values[1] = {0};
22576 if (unlikely(__pyx_kwds)) {
22577 Py_ssize_t kw_args;
22578 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
22579 switch (pos_args) {
22580 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22581 CYTHON_FALLTHROUGH;
22583 default:
goto __pyx_L5_argtuple_error;
22585 kw_args = PyDict_Size(__pyx_kwds);
22586 switch (pos_args) {
22588 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--;
22589 else goto __pyx_L5_argtuple_error;
22591 if (unlikely(kw_args > 0)) {
22592 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__init__") < 0)) __PYX_ERR(0, 281, __pyx_L3_error)
22594 }
else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
22595 goto __pyx_L5_argtuple_error;
22597 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
22599 __pyx_v_name = values[0];
22601 goto __pyx_L4_argument_unpacking_done;
22602 __pyx_L5_argtuple_error:;
22603 __Pyx_RaiseArgtupleInvalid(
"__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 281, __pyx_L3_error)
22605 __Pyx_AddTraceback(
"View.MemoryView.Enum.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
22606 __Pyx_RefNannyFinishContext();
22608 __pyx_L4_argument_unpacking_done:;
22609 __pyx_r = __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum___init__(((
struct __pyx_MemviewEnum_obj *)__pyx_v_self), __pyx_v_name);
22612 __Pyx_RefNannyFinishContext();
22616 static int __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum___init__(
struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v_name) {
22618 __Pyx_RefNannyDeclarations
22619 __Pyx_RefNannySetupContext(
"__init__", 0);
22628 __Pyx_INCREF(__pyx_v_name);
22629 __Pyx_GIVEREF(__pyx_v_name);
22630 __Pyx_GOTREF(__pyx_v_self->name);
22631 __Pyx_DECREF(__pyx_v_self->name);
22632 __pyx_v_self->name = __pyx_v_name;
22644 __Pyx_RefNannyFinishContext();
22657 static PyObject *__pyx_MemviewEnum___repr__(PyObject *__pyx_v_self);
22658 static PyObject *__pyx_MemviewEnum___repr__(PyObject *__pyx_v_self) {
22659 PyObject *__pyx_r = 0;
22660 __Pyx_RefNannyDeclarations
22661 __Pyx_RefNannySetupContext(
"__repr__ (wrapper)", 0);
22662 __pyx_r = __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum_2__repr__(((
struct __pyx_MemviewEnum_obj *)__pyx_v_self));
22665 __Pyx_RefNannyFinishContext();
22669 static PyObject *__pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum_2__repr__(
struct __pyx_MemviewEnum_obj *__pyx_v_self) {
22670 PyObject *__pyx_r = NULL;
22671 __Pyx_RefNannyDeclarations
22672 __Pyx_RefNannySetupContext(
"__repr__", 0);
22681 __Pyx_XDECREF(__pyx_r);
22682 __Pyx_INCREF(__pyx_v_self->name);
22683 __pyx_r = __pyx_v_self->name;
22696 __Pyx_XGIVEREF(__pyx_r);
22697 __Pyx_RefNannyFinishContext();
22708 static PyObject *__pyx_pw___pyx_MemviewEnum_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
22709 static PyObject *__pyx_pw___pyx_MemviewEnum_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
22710 PyObject *__pyx_r = 0;
22711 __Pyx_RefNannyDeclarations
22712 __Pyx_RefNannySetupContext(
"__reduce_cython__ (wrapper)", 0);
22713 __pyx_r = __pyx_pf___pyx_MemviewEnum___reduce_cython__(((
struct __pyx_MemviewEnum_obj *)__pyx_v_self));
22716 __Pyx_RefNannyFinishContext();
22720 static PyObject *__pyx_pf___pyx_MemviewEnum___reduce_cython__(
struct __pyx_MemviewEnum_obj *__pyx_v_self) {
22721 PyObject *__pyx_v_state = 0;
22722 PyObject *__pyx_v__dict = 0;
22723 int __pyx_v_use_setstate;
22724 PyObject *__pyx_r = NULL;
22725 __Pyx_RefNannyDeclarations
22726 PyObject *__pyx_t_1 = NULL;
22729 PyObject *__pyx_t_4 = NULL;
22730 PyObject *__pyx_t_5 = NULL;
22731 __Pyx_RefNannySetupContext(
"__reduce_cython__", 0);
22740 __pyx_t_1 = PyTuple_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5, __pyx_L1_error)
22741 __Pyx_GOTREF(__pyx_t_1);
22742 __Pyx_INCREF(__pyx_v_self->name);
22743 __Pyx_GIVEREF(__pyx_v_self->name);
22744 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->name);
22745 __pyx_v_state = ((PyObject*)__pyx_t_1);
22755 __pyx_t_1 = __Pyx_GetAttr3(((PyObject *)__pyx_v_self), __pyx_n_s_dict, Py_None);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6, __pyx_L1_error)
22756 __Pyx_GOTREF(__pyx_t_1);
22757 __pyx_v__dict = __pyx_t_1;
22767 __pyx_t_2 = (__pyx_v__dict != Py_None);
22768 __pyx_t_3 = (__pyx_t_2 != 0);
22778 __pyx_t_1 = PyTuple_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 8, __pyx_L1_error)
22779 __Pyx_GOTREF(__pyx_t_1);
22780 __Pyx_INCREF(__pyx_v__dict);
22781 __Pyx_GIVEREF(__pyx_v__dict);
22782 PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v__dict);
22783 __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_state, __pyx_t_1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 8, __pyx_L1_error)
22784 __Pyx_GOTREF(__pyx_t_4);
22785 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22786 __Pyx_DECREF_SET(__pyx_v_state, ((PyObject*)__pyx_t_4));
22796 __pyx_v_use_setstate = 1;
22816 __pyx_t_3 = (__pyx_v_self->name != Py_None);
22817 __pyx_v_use_setstate = __pyx_t_3;
22828 __pyx_t_3 = (__pyx_v_use_setstate != 0);
22838 __Pyx_XDECREF(__pyx_r);
22839 __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_pyx_unpickle_Enum);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 13, __pyx_L1_error)
22840 __Pyx_GOTREF(__pyx_t_4);
22841 __pyx_t_1 = PyTuple_New(3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 13, __pyx_L1_error)
22842 __Pyx_GOTREF(__pyx_t_1);
22843 __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
22844 __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
22845 PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
22846 __Pyx_INCREF(__pyx_int_184977713);
22847 __Pyx_GIVEREF(__pyx_int_184977713);
22848 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_184977713);
22849 __Pyx_INCREF(Py_None);
22850 __Pyx_GIVEREF(Py_None);
22851 PyTuple_SET_ITEM(__pyx_t_1, 2, Py_None);
22852 __pyx_t_5 = PyTuple_New(3);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 13, __pyx_L1_error)
22853 __Pyx_GOTREF(__pyx_t_5);
22854 __Pyx_GIVEREF(__pyx_t_4);
22855 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
22856 __Pyx_GIVEREF(__pyx_t_1);
22857 PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
22858 __Pyx_INCREF(__pyx_v_state);
22859 __Pyx_GIVEREF(__pyx_v_state);
22860 PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_state);
22863 __pyx_r = __pyx_t_5;
22884 __Pyx_XDECREF(__pyx_r);
22885 __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_pyx_unpickle_Enum);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 15, __pyx_L1_error)
22886 __Pyx_GOTREF(__pyx_t_5);
22887 __pyx_t_1 = PyTuple_New(3);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error)
22888 __Pyx_GOTREF(__pyx_t_1);
22889 __Pyx_INCREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
22890 __Pyx_GIVEREF(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
22891 PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))));
22892 __Pyx_INCREF(__pyx_int_184977713);
22893 __Pyx_GIVEREF(__pyx_int_184977713);
22894 PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_int_184977713);
22895 __Pyx_INCREF(__pyx_v_state);
22896 __Pyx_GIVEREF(__pyx_v_state);
22897 PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_state);
22898 __pyx_t_4 = PyTuple_New(2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15, __pyx_L1_error)
22899 __Pyx_GOTREF(__pyx_t_4);
22900 __Pyx_GIVEREF(__pyx_t_5);
22901 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
22902 __Pyx_GIVEREF(__pyx_t_1);
22903 PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
22906 __pyx_r = __pyx_t_4;
22919 __Pyx_XDECREF(__pyx_t_1);
22920 __Pyx_XDECREF(__pyx_t_4);
22921 __Pyx_XDECREF(__pyx_t_5);
22922 __Pyx_AddTraceback(
"View.MemoryView.Enum.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
22925 __Pyx_XDECREF(__pyx_v_state);
22926 __Pyx_XDECREF(__pyx_v__dict);
22927 __Pyx_XGIVEREF(__pyx_r);
22928 __Pyx_RefNannyFinishContext();
22940 static PyObject *__pyx_pw___pyx_MemviewEnum_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state);
22941 static PyObject *__pyx_pw___pyx_MemviewEnum_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
22942 PyObject *__pyx_r = 0;
22943 __Pyx_RefNannyDeclarations
22944 __Pyx_RefNannySetupContext(
"__setstate_cython__ (wrapper)", 0);
22945 __pyx_r = __pyx_pf___pyx_MemviewEnum_2__setstate_cython__(((
struct __pyx_MemviewEnum_obj *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
22948 __Pyx_RefNannyFinishContext();
22952 static PyObject *__pyx_pf___pyx_MemviewEnum_2__setstate_cython__(
struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
22953 PyObject *__pyx_r = NULL;
22954 __Pyx_RefNannyDeclarations
22955 PyObject *__pyx_t_1 = NULL;
22956 __Pyx_RefNannySetupContext(
"__setstate_cython__", 0);
22963 if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(0, 17, __pyx_L1_error)
22964 __pyx_t_1 = __pyx_unpickle_Enum__set_state(__pyx_v_self, ((PyObject*)__pyx_v___pyx_state));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 17, __pyx_L1_error)
22965 __Pyx_GOTREF(__pyx_t_1);
22966 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
22976 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
22979 __Pyx_XDECREF(__pyx_t_1);
22980 __Pyx_AddTraceback(
"View.MemoryView.Enum.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
22983 __Pyx_XGIVEREF(__pyx_r);
22984 __Pyx_RefNannyFinishContext();
22996 static void *__pyx_align_pointer(
void *__pyx_v_memory,
size_t __pyx_v_alignment) {
22997 Py_intptr_t __pyx_v_aligned_p;
22998 size_t __pyx_v_offset;
23009 __pyx_v_aligned_p = ((Py_intptr_t)__pyx_v_memory);
23018 __pyx_v_offset = (__pyx_v_aligned_p % __pyx_v_alignment);
23027 __pyx_t_1 = ((__pyx_v_offset > 0) != 0);
23037 __pyx_v_aligned_p = (__pyx_v_aligned_p + (__pyx_v_alignment - __pyx_v_offset));
23055 __pyx_r = ((
void *)__pyx_v_aligned_p);
23080 static int __pyx_memoryview___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
23081 static int __pyx_memoryview___cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
23082 PyObject *__pyx_v_obj = 0;
23084 int __pyx_v_dtype_is_object;
23086 __Pyx_RefNannyDeclarations
23087 __Pyx_RefNannySetupContext(
"__cinit__ (wrapper)", 0);
23089 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_obj,&__pyx_n_s_flags,&__pyx_n_s_dtype_is_object,0};
23090 PyObject* values[3] = {0,0,0};
23091 if (unlikely(__pyx_kwds)) {
23092 Py_ssize_t kw_args;
23093 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
23094 switch (pos_args) {
23095 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23096 CYTHON_FALLTHROUGH;
23097 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23098 CYTHON_FALLTHROUGH;
23099 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23100 CYTHON_FALLTHROUGH;
23102 default:
goto __pyx_L5_argtuple_error;
23104 kw_args = PyDict_Size(__pyx_kwds);
23105 switch (pos_args) {
23107 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_obj)) != 0)) kw_args--;
23108 else goto __pyx_L5_argtuple_error;
23109 CYTHON_FALLTHROUGH;
23111 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_flags)) != 0)) kw_args--;
23113 __Pyx_RaiseArgtupleInvalid(
"__cinit__", 0, 2, 3, 1); __PYX_ERR(0, 345, __pyx_L3_error)
23115 CYTHON_FALLTHROUGH;
23118 PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_dtype_is_object);
23119 if (value) { values[2] = value; kw_args--; }
23122 if (unlikely(kw_args > 0)) {
23123 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__cinit__") < 0)) __PYX_ERR(0, 345, __pyx_L3_error)
23126 switch (PyTuple_GET_SIZE(__pyx_args)) {
23127 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
23128 CYTHON_FALLTHROUGH;
23129 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
23130 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
23132 default:
goto __pyx_L5_argtuple_error;
23135 __pyx_v_obj = values[0];
23136 __pyx_v_flags = __Pyx_PyInt_As_int(values[1]);
if (unlikely((__pyx_v_flags == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 345, __pyx_L3_error)
23138 __pyx_v_dtype_is_object = __Pyx_PyObject_IsTrue(values[2]);
if (unlikely((__pyx_v_dtype_is_object == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 345, __pyx_L3_error)
23140 __pyx_v_dtype_is_object = ((int)0);
23143 goto __pyx_L4_argument_unpacking_done;
23144 __pyx_L5_argtuple_error:;
23145 __Pyx_RaiseArgtupleInvalid(
"__cinit__", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 345, __pyx_L3_error)
23147 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
23148 __Pyx_RefNannyFinishContext();
23150 __pyx_L4_argument_unpacking_done:;
23151 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit__(((
struct __pyx_memoryview_obj *)__pyx_v_self), __pyx_v_obj, __pyx_v_flags, __pyx_v_dtype_is_object);
23154 __Pyx_RefNannyFinishContext();
23158 static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit__(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj,
int __pyx_v_flags,
int __pyx_v_dtype_is_object) {
23160 __Pyx_RefNannyDeclarations
23165 __Pyx_RefNannySetupContext(
"__cinit__", 0);
23174 __Pyx_INCREF(__pyx_v_obj);
23175 __Pyx_GIVEREF(__pyx_v_obj);
23176 __Pyx_GOTREF(__pyx_v_self->obj);
23177 __Pyx_DECREF(__pyx_v_self->obj);
23178 __pyx_v_self->obj = __pyx_v_obj;
23187 __pyx_v_self->flags = __pyx_v_flags;
23196 __pyx_t_2 = (((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self))) == ((PyObject *)__pyx_memoryview_type));
23197 __pyx_t_3 = (__pyx_t_2 != 0);
23200 __pyx_t_1 = __pyx_t_3;
23201 goto __pyx_L4_bool_binop_done;
23203 __pyx_t_3 = (__pyx_v_obj != Py_None);
23204 __pyx_t_2 = (__pyx_t_3 != 0);
23205 __pyx_t_1 = __pyx_t_2;
23206 __pyx_L4_bool_binop_done:;
23216 __pyx_t_4 = __Pyx_GetBuffer(__pyx_v_obj, (&__pyx_v_self->view), __pyx_v_flags);
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(0, 349, __pyx_L1_error)
23225 __pyx_t_1 = ((((PyObject *)__pyx_v_self->view.obj) == NULL) != 0);
23235 ((Py_buffer *)(&__pyx_v_self->view))->obj = Py_None;
23244 Py_INCREF(Py_None);
23271 __pyx_t_1 = ((__pyx_memoryview_thread_locks_used < 8) != 0);
23281 __pyx_v_self->lock = (__pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]);
23290 __pyx_memoryview_thread_locks_used = (__pyx_memoryview_thread_locks_used + 1);
23308 __pyx_t_1 = ((__pyx_v_self->lock == NULL) != 0);
23318 __pyx_v_self->lock = PyThread_allocate_lock();
23327 __pyx_t_1 = ((__pyx_v_self->lock == NULL) != 0);
23328 if (unlikely(__pyx_t_1)) {
23337 PyErr_NoMemory(); __PYX_ERR(0, 361, __pyx_L1_error)
23364 __pyx_t_1 = ((__pyx_v_flags & PyBUF_FORMAT) != 0);
23374 __pyx_t_2 = (((__pyx_v_self->view.format[0]) ==
'O') != 0);
23377 __pyx_t_1 = __pyx_t_2;
23378 goto __pyx_L11_bool_binop_done;
23380 __pyx_t_2 = (((__pyx_v_self->view.format[1]) ==
'\x00') != 0);
23381 __pyx_t_1 = __pyx_t_2;
23382 __pyx_L11_bool_binop_done:;
23383 __pyx_v_self->dtype_is_object = __pyx_t_1;
23403 __pyx_v_self->dtype_is_object = __pyx_v_dtype_is_object;
23414 __pyx_v_self->acquisition_count_aligned_p = ((__pyx_atomic_int *)__pyx_align_pointer(((
void *)(&(__pyx_v_self->acquisition_count[0]))), (
sizeof(__pyx_atomic_int))));
23423 __pyx_v_self->typeinfo = NULL;
23437 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
23440 __Pyx_RefNannyFinishContext();
23453 static void __pyx_memoryview___dealloc__(PyObject *__pyx_v_self);
23454 static void __pyx_memoryview___dealloc__(PyObject *__pyx_v_self) {
23455 __Pyx_RefNannyDeclarations
23456 __Pyx_RefNannySetupContext(
"__dealloc__ (wrapper)", 0);
23457 __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__dealloc__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
23460 __Pyx_RefNannyFinishContext();
23463 static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__dealloc__(
struct __pyx_memoryview_obj *__pyx_v_self) {
23465 __Pyx_RefNannyDeclarations
23471 PyThread_type_lock __pyx_t_6;
23472 PyThread_type_lock __pyx_t_7;
23473 __Pyx_RefNannySetupContext(
"__dealloc__", 0);
23482 __pyx_t_1 = (__pyx_v_self->obj != Py_None);
23483 __pyx_t_2 = (__pyx_t_1 != 0);
23493 __Pyx_ReleaseBuffer((&__pyx_v_self->view));
23511 __pyx_t_2 = ((__pyx_v_self->lock != NULL) != 0);
23521 __pyx_t_3 = __pyx_memoryview_thread_locks_used;
23522 __pyx_t_4 = __pyx_t_3;
23523 for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
23524 __pyx_v_i = __pyx_t_5;
23533 __pyx_t_2 = (((__pyx_memoryview_thread_locks[__pyx_v_i]) == __pyx_v_self->lock) != 0);
23543 __pyx_memoryview_thread_locks_used = (__pyx_memoryview_thread_locks_used - 1);
23552 __pyx_t_2 = ((__pyx_v_i != __pyx_memoryview_thread_locks_used) != 0);
23562 __pyx_t_6 = (__pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]);
23563 __pyx_t_7 = (__pyx_memoryview_thread_locks[__pyx_v_i]);
23572 (__pyx_memoryview_thread_locks[__pyx_v_i]) = __pyx_t_6;
23573 (__pyx_memoryview_thread_locks[__pyx_memoryview_thread_locks_used]) = __pyx_t_7;
23591 goto __pyx_L6_break;
23611 PyThread_free_lock(__pyx_v_self->lock);
23633 __Pyx_RefNannyFinishContext();
23644 static char *__pyx_memoryview_get_item_pointer(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index) {
23645 Py_ssize_t __pyx_v_dim;
23646 char *__pyx_v_itemp;
23647 PyObject *__pyx_v_idx = NULL;
23649 __Pyx_RefNannyDeclarations
23650 Py_ssize_t __pyx_t_1;
23651 PyObject *__pyx_t_2 = NULL;
23652 Py_ssize_t __pyx_t_3;
23653 PyObject *(*__pyx_t_4)(PyObject *);
23654 PyObject *__pyx_t_5 = NULL;
23655 Py_ssize_t __pyx_t_6;
23657 __Pyx_RefNannySetupContext(
"get_item_pointer", 0);
23666 __pyx_v_itemp = ((
char *)__pyx_v_self->view.buf);
23676 if (likely(PyList_CheckExact(__pyx_v_index)) || PyTuple_CheckExact(__pyx_v_index)) {
23677 __pyx_t_2 = __pyx_v_index; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0;
23680 __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_index);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 393, __pyx_L1_error)
23681 __Pyx_GOTREF(__pyx_t_2);
23682 __pyx_t_4 = Py_TYPE(__pyx_t_2)->tp_iternext;
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 393, __pyx_L1_error)
23685 if (likely(!__pyx_t_4)) {
23686 if (likely(PyList_CheckExact(__pyx_t_2))) {
23687 if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2))
break;
23688 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
23689 __pyx_t_5 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++;
if (unlikely(0 < 0)) __PYX_ERR(0, 393, __pyx_L1_error)
23691 __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 393, __pyx_L1_error)
23692 __Pyx_GOTREF(__pyx_t_5);
23695 if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2))
break;
23696 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
23697 __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++;
if (unlikely(0 < 0)) __PYX_ERR(0, 393, __pyx_L1_error)
23699 __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++;
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 393, __pyx_L1_error)
23700 __Pyx_GOTREF(__pyx_t_5);
23704 __pyx_t_5 = __pyx_t_4(__pyx_t_2);
23705 if (unlikely(!__pyx_t_5)) {
23706 PyObject* exc_type = PyErr_Occurred();
23708 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
23709 else __PYX_ERR(0, 393, __pyx_L1_error)
23713 __Pyx_GOTREF(__pyx_t_5);
23715 __Pyx_XDECREF_SET(__pyx_v_idx, __pyx_t_5);
23717 __pyx_v_dim = __pyx_t_1;
23718 __pyx_t_1 = (__pyx_t_1 + 1);
23727 __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_v_idx);
if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 394, __pyx_L1_error)
23728 __pyx_t_7 = __pyx_pybuffer_index((&__pyx_v_self->view), __pyx_v_itemp, __pyx_t_6, __pyx_v_dim);
if (unlikely(__pyx_t_7 == ((
char *)NULL))) __PYX_ERR(0, 394, __pyx_L1_error)
23729 __pyx_v_itemp = __pyx_t_7;
23739 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
23748 __pyx_r = __pyx_v_itemp;
23761 __Pyx_XDECREF(__pyx_t_2);
23762 __Pyx_XDECREF(__pyx_t_5);
23763 __Pyx_AddTraceback(
"View.MemoryView.memoryview.get_item_pointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
23766 __Pyx_XDECREF(__pyx_v_idx);
23767 __Pyx_RefNannyFinishContext();
23780 static PyObject *__pyx_memoryview___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index);
23781 static PyObject *__pyx_memoryview___getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index) {
23782 PyObject *__pyx_r = 0;
23783 __Pyx_RefNannyDeclarations
23784 __Pyx_RefNannySetupContext(
"__getitem__ (wrapper)", 0);
23785 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4__getitem__(((
struct __pyx_memoryview_obj *)__pyx_v_self), ((PyObject *)__pyx_v_index));
23788 __Pyx_RefNannyFinishContext();
23792 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4__getitem__(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index) {
23793 PyObject *__pyx_v_have_slices = NULL;
23794 PyObject *__pyx_v_indices = NULL;
23795 char *__pyx_v_itemp;
23796 PyObject *__pyx_r = NULL;
23797 __Pyx_RefNannyDeclarations
23800 PyObject *__pyx_t_3 = NULL;
23801 PyObject *__pyx_t_4 = NULL;
23802 PyObject *__pyx_t_5 = NULL;
23804 __Pyx_RefNannySetupContext(
"__getitem__", 0);
23813 __pyx_t_1 = (__pyx_v_index == __pyx_builtin_Ellipsis);
23814 __pyx_t_2 = (__pyx_t_1 != 0);
23824 __Pyx_XDECREF(__pyx_r);
23825 __Pyx_INCREF(((PyObject *)__pyx_v_self));
23826 __pyx_r = ((PyObject *)__pyx_v_self);
23845 __pyx_t_3 = _unellipsify(__pyx_v_index, __pyx_v_self->view.ndim);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 403, __pyx_L1_error)
23846 __Pyx_GOTREF(__pyx_t_3);
23847 if (likely(__pyx_t_3 != Py_None)) {
23848 PyObject* sequence = __pyx_t_3;
23849 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
23850 if (unlikely(size != 2)) {
23851 if (size > 2) __Pyx_RaiseTooManyValuesError(2);
23852 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
23853 __PYX_ERR(0, 403, __pyx_L1_error)
23855 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
23856 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 0);
23857 __pyx_t_5 = PyTuple_GET_ITEM(sequence, 1);
23858 __Pyx_INCREF(__pyx_t_4);
23859 __Pyx_INCREF(__pyx_t_5);
23861 __pyx_t_4 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 403, __pyx_L1_error)
23862 __Pyx_GOTREF(__pyx_t_4);
23863 __pyx_t_5 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 403, __pyx_L1_error)
23864 __Pyx_GOTREF(__pyx_t_5);
23866 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
23868 __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 403, __pyx_L1_error)
23870 __pyx_v_have_slices = __pyx_t_4;
23872 __pyx_v_indices = __pyx_t_5;
23882 __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_have_slices);
if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 406, __pyx_L1_error)
23892 __Pyx_XDECREF(__pyx_r);
23893 __pyx_t_3 = ((PyObject *)__pyx_memview_slice(__pyx_v_self, __pyx_v_indices));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 407, __pyx_L1_error)
23894 __Pyx_GOTREF(__pyx_t_3);
23895 __pyx_r = __pyx_t_3;
23916 __pyx_t_6 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->get_item_pointer(__pyx_v_self, __pyx_v_indices);
if (unlikely(__pyx_t_6 == ((
char *)NULL))) __PYX_ERR(0, 409, __pyx_L1_error)
23917 __pyx_v_itemp = __pyx_t_6;
23926 __Pyx_XDECREF(__pyx_r);
23927 __pyx_t_3 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->convert_item_to_object(__pyx_v_self, __pyx_v_itemp);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 410, __pyx_L1_error)
23928 __Pyx_GOTREF(__pyx_t_3);
23929 __pyx_r = __pyx_t_3;
23944 __Pyx_XDECREF(__pyx_t_3);
23945 __Pyx_XDECREF(__pyx_t_4);
23946 __Pyx_XDECREF(__pyx_t_5);
23947 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
23950 __Pyx_XDECREF(__pyx_v_have_slices);
23951 __Pyx_XDECREF(__pyx_v_indices);
23952 __Pyx_XGIVEREF(__pyx_r);
23953 __Pyx_RefNannyFinishContext();
23966 static int __pyx_memoryview___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value);
23967 static int __pyx_memoryview___setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) {
23969 __Pyx_RefNannyDeclarations
23970 __Pyx_RefNannySetupContext(
"__setitem__ (wrapper)", 0);
23971 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setitem__(((
struct __pyx_memoryview_obj *)__pyx_v_self), ((PyObject *)__pyx_v_index), ((PyObject *)__pyx_v_value));
23974 __Pyx_RefNannyFinishContext();
23978 static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setitem__(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) {
23979 PyObject *__pyx_v_have_slices = NULL;
23980 PyObject *__pyx_v_obj = NULL;
23982 __Pyx_RefNannyDeclarations
23984 PyObject *__pyx_t_2 = NULL;
23985 PyObject *__pyx_t_3 = NULL;
23986 PyObject *__pyx_t_4 = NULL;
23987 __Pyx_RefNannySetupContext(
"__setitem__", 0);
23988 __Pyx_INCREF(__pyx_v_index);
23997 __pyx_t_1 = (__pyx_v_self->view.readonly != 0);
23998 if (unlikely(__pyx_t_1)) {
24007 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__20, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 414, __pyx_L1_error)
24008 __Pyx_GOTREF(__pyx_t_2);
24009 __Pyx_Raise(__pyx_t_2, 0, 0, 0);
24010 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24011 __PYX_ERR(0, 414, __pyx_L1_error)
24029 __pyx_t_2 = _unellipsify(__pyx_v_index, __pyx_v_self->view.ndim);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 416, __pyx_L1_error)
24030 __Pyx_GOTREF(__pyx_t_2);
24031 if (likely(__pyx_t_2 != Py_None)) {
24032 PyObject* sequence = __pyx_t_2;
24033 Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
24034 if (unlikely(size != 2)) {
24035 if (size > 2) __Pyx_RaiseTooManyValuesError(2);
24036 else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
24037 __PYX_ERR(0, 416, __pyx_L1_error)
24039 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
24040 __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
24041 __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1);
24042 __Pyx_INCREF(__pyx_t_3);
24043 __Pyx_INCREF(__pyx_t_4);
24045 __pyx_t_3 = PySequence_ITEM(sequence, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 416, __pyx_L1_error)
24046 __Pyx_GOTREF(__pyx_t_3);
24047 __pyx_t_4 = PySequence_ITEM(sequence, 1);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 416, __pyx_L1_error)
24048 __Pyx_GOTREF(__pyx_t_4);
24050 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24052 __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 416, __pyx_L1_error)
24054 __pyx_v_have_slices = __pyx_t_3;
24056 __Pyx_DECREF_SET(__pyx_v_index, __pyx_t_4);
24066 __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_have_slices);
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 418, __pyx_L1_error)
24076 __pyx_t_2 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->is_slice(__pyx_v_self, __pyx_v_value);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 419, __pyx_L1_error)
24077 __Pyx_GOTREF(__pyx_t_2);
24078 __pyx_v_obj = __pyx_t_2;
24088 __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_obj);
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 420, __pyx_L1_error)
24098 __pyx_t_2 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_self), __pyx_v_index);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 421, __pyx_L1_error)
24099 __Pyx_GOTREF(__pyx_t_2);
24100 __pyx_t_4 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->setitem_slice_assignment(__pyx_v_self, __pyx_t_2, __pyx_v_obj);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 421, __pyx_L1_error)
24101 __Pyx_GOTREF(__pyx_t_4);
24102 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24103 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
24123 __pyx_t_4 = __Pyx_PyObject_GetItem(((PyObject *)__pyx_v_self), __pyx_v_index);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 423, __pyx_L1_error)
24124 __Pyx_GOTREF(__pyx_t_4);
24125 if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_memoryview_type))))) __PYX_ERR(0, 423, __pyx_L1_error)
24126 __pyx_t_2 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->setitem_slice_assign_scalar(__pyx_v_self, ((
struct __pyx_memoryview_obj *)__pyx_t_4), __pyx_v_value);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 423, __pyx_L1_error)
24127 __Pyx_GOTREF(__pyx_t_2);
24128 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
24129 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24151 __pyx_t_2 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->setitem_indexed(__pyx_v_self, __pyx_v_index, __pyx_v_value);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 425, __pyx_L1_error)
24152 __Pyx_GOTREF(__pyx_t_2);
24153 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24169 __Pyx_XDECREF(__pyx_t_2);
24170 __Pyx_XDECREF(__pyx_t_3);
24171 __Pyx_XDECREF(__pyx_t_4);
24172 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
24175 __Pyx_XDECREF(__pyx_v_have_slices);
24176 __Pyx_XDECREF(__pyx_v_obj);
24177 __Pyx_XDECREF(__pyx_v_index);
24178 __Pyx_RefNannyFinishContext();
24190 static PyObject *__pyx_memoryview_is_slice(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj) {
24191 PyObject *__pyx_r = NULL;
24192 __Pyx_RefNannyDeclarations
24195 PyObject *__pyx_t_3 = NULL;
24196 PyObject *__pyx_t_4 = NULL;
24197 PyObject *__pyx_t_5 = NULL;
24198 PyObject *__pyx_t_6 = NULL;
24199 PyObject *__pyx_t_7 = NULL;
24200 PyObject *__pyx_t_8 = NULL;
24202 __Pyx_RefNannySetupContext(
"is_slice", 0);
24203 __Pyx_INCREF(__pyx_v_obj);
24212 __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_obj, __pyx_memoryview_type);
24213 __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
24224 __Pyx_PyThreadState_declare
24225 __Pyx_PyThreadState_assign
24226 __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
24227 __Pyx_XGOTREF(__pyx_t_3);
24228 __Pyx_XGOTREF(__pyx_t_4);
24229 __Pyx_XGOTREF(__pyx_t_5);
24239 __pyx_t_6 = __Pyx_PyInt_From_int(((__pyx_v_self->flags & (~PyBUF_WRITABLE)) | PyBUF_ANY_CONTIGUOUS));
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 430, __pyx_L4_error)
24240 __Pyx_GOTREF(__pyx_t_6);
24249 __pyx_t_7 = __Pyx_PyBool_FromLong(__pyx_v_self->dtype_is_object);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 431, __pyx_L4_error)
24250 __Pyx_GOTREF(__pyx_t_7);
24259 __pyx_t_8 = PyTuple_New(3);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 430, __pyx_L4_error)
24260 __Pyx_GOTREF(__pyx_t_8);
24261 __Pyx_INCREF(__pyx_v_obj);
24262 __Pyx_GIVEREF(__pyx_v_obj);
24263 PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_obj);
24264 __Pyx_GIVEREF(__pyx_t_6);
24265 PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_6);
24266 __Pyx_GIVEREF(__pyx_t_7);
24267 PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_7);
24270 __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_memoryview_type), __pyx_t_8, NULL);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 430, __pyx_L4_error)
24271 __Pyx_GOTREF(__pyx_t_7);
24272 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
24273 __Pyx_DECREF_SET(__pyx_v_obj, __pyx_t_7);
24284 __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
24285 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
24286 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
24287 goto __pyx_L9_try_end;
24289 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
24290 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
24291 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
24300 __pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_TypeError);
24302 __Pyx_AddTraceback(
"View.MemoryView.memoryview.is_slice", __pyx_clineno, __pyx_lineno, __pyx_filename);
24303 if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_8, &__pyx_t_6) < 0) __PYX_ERR(0, 432, __pyx_L6_except_error)
24304 __Pyx_GOTREF(__pyx_t_7);
24305 __Pyx_GOTREF(__pyx_t_8);
24306 __Pyx_GOTREF(__pyx_t_6);
24315 __Pyx_XDECREF(__pyx_r);
24316 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24317 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
24318 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
24319 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
24320 goto __pyx_L7_except_return;
24322 goto __pyx_L6_except_error;
24323 __pyx_L6_except_error:;
24332 __Pyx_XGIVEREF(__pyx_t_3);
24333 __Pyx_XGIVEREF(__pyx_t_4);
24334 __Pyx_XGIVEREF(__pyx_t_5);
24335 __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
24336 goto __pyx_L1_error;
24337 __pyx_L7_except_return:;
24338 __Pyx_XGIVEREF(__pyx_t_3);
24339 __Pyx_XGIVEREF(__pyx_t_4);
24340 __Pyx_XGIVEREF(__pyx_t_5);
24341 __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
24362 __Pyx_XDECREF(__pyx_r);
24363 __Pyx_INCREF(__pyx_v_obj);
24364 __pyx_r = __pyx_v_obj;
24377 __Pyx_XDECREF(__pyx_t_6);
24378 __Pyx_XDECREF(__pyx_t_7);
24379 __Pyx_XDECREF(__pyx_t_8);
24380 __Pyx_AddTraceback(
"View.MemoryView.memoryview.is_slice", __pyx_clineno, __pyx_lineno, __pyx_filename);
24383 __Pyx_XDECREF(__pyx_v_obj);
24384 __Pyx_XGIVEREF(__pyx_r);
24385 __Pyx_RefNannyFinishContext();
24397 static PyObject *__pyx_memoryview_setitem_slice_assignment(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src) {
24398 __Pyx_memviewslice __pyx_v_dst_slice;
24399 __Pyx_memviewslice __pyx_v_src_slice;
24400 PyObject *__pyx_r = NULL;
24401 __Pyx_RefNannyDeclarations
24402 PyObject *__pyx_t_1 = NULL;
24406 __Pyx_RefNannySetupContext(
"setitem_slice_assignment", 0);
24415 if (!(likely(((__pyx_v_src) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_src, __pyx_memoryview_type))))) __PYX_ERR(0, 441, __pyx_L1_error)
24424 if (!(likely(((__pyx_v_dst) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_dst, __pyx_memoryview_type))))) __PYX_ERR(0, 442, __pyx_L1_error)
24433 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_src, __pyx_n_s_ndim);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 443, __pyx_L1_error)
24434 __Pyx_GOTREF(__pyx_t_1);
24435 __pyx_t_2 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_2 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 443, __pyx_L1_error)
24436 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24437 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_dst, __pyx_n_s_ndim);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 443, __pyx_L1_error)
24438 __Pyx_GOTREF(__pyx_t_1);
24439 __pyx_t_3 = __Pyx_PyInt_As_int(__pyx_t_1);
if (unlikely((__pyx_t_3 == (
int)-1) && PyErr_Occurred())) __PYX_ERR(0, 443, __pyx_L1_error)
24440 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
24449 __pyx_t_4 = __pyx_memoryview_copy_contents((__pyx_memoryview_get_slice_from_memoryview(((
struct __pyx_memoryview_obj *)__pyx_v_src), (&__pyx_v_src_slice))[0]), (__pyx_memoryview_get_slice_from_memoryview(((
struct __pyx_memoryview_obj *)__pyx_v_dst), (&__pyx_v_dst_slice))[0]), __pyx_t_2, __pyx_t_3, __pyx_v_self->dtype_is_object);
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(0, 441, __pyx_L1_error)
24460 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24463 __Pyx_XDECREF(__pyx_t_1);
24464 __Pyx_AddTraceback(
"View.MemoryView.memoryview.setitem_slice_assignment", __pyx_clineno, __pyx_lineno, __pyx_filename);
24467 __Pyx_XGIVEREF(__pyx_r);
24468 __Pyx_RefNannyFinishContext();
24480 static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(
struct __pyx_memoryview_obj *__pyx_v_self,
struct __pyx_memoryview_obj *__pyx_v_dst, PyObject *__pyx_v_value) {
24481 int __pyx_v_array[0x80];
24483 void *__pyx_v_item;
24484 __Pyx_memviewslice *__pyx_v_dst_slice;
24485 __Pyx_memviewslice __pyx_v_tmp_slice;
24486 PyObject *__pyx_r = NULL;
24487 __Pyx_RefNannyDeclarations
24489 PyObject *__pyx_t_2 = NULL;
24492 char const *__pyx_t_5;
24493 PyObject *__pyx_t_6 = NULL;
24494 PyObject *__pyx_t_7 = NULL;
24495 PyObject *__pyx_t_8 = NULL;
24496 PyObject *__pyx_t_9 = NULL;
24497 PyObject *__pyx_t_10 = NULL;
24498 PyObject *__pyx_t_11 = NULL;
24499 __Pyx_RefNannySetupContext(
"setitem_slice_assign_scalar", 0);
24508 __pyx_v_tmp = NULL;
24517 __pyx_v_dst_slice = __pyx_memoryview_get_slice_from_memoryview(__pyx_v_dst, (&__pyx_v_tmp_slice));
24526 __pyx_t_1 = ((((size_t)__pyx_v_self->view.itemsize) > (
sizeof(__pyx_v_array))) != 0);
24536 __pyx_v_tmp = PyMem_Malloc(__pyx_v_self->view.itemsize);
24545 __pyx_t_1 = ((__pyx_v_tmp == NULL) != 0);
24546 if (unlikely(__pyx_t_1)) {
24555 PyErr_NoMemory(); __PYX_ERR(0, 457, __pyx_L1_error)
24573 __pyx_v_item = __pyx_v_tmp;
24593 __pyx_v_item = ((
void *)__pyx_v_array);
24613 __pyx_t_1 = (__pyx_v_self->dtype_is_object != 0);
24623 (((PyObject **)__pyx_v_item)[0]) = ((PyObject *)__pyx_v_value);
24643 __pyx_t_2 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->assign_item_from_object(__pyx_v_self, ((
char *)__pyx_v_item), __pyx_v_value);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 466, __pyx_L6_error)
24644 __Pyx_GOTREF(__pyx_t_2);
24645 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24656 __pyx_t_1 = ((__pyx_v_self->view.suboffsets != NULL) != 0);
24666 __pyx_t_2 = assert_direct_dimensions(__pyx_v_self->view.suboffsets, __pyx_v_self->view.ndim);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 471, __pyx_L6_error)
24667 __Pyx_GOTREF(__pyx_t_2);
24668 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24686 __pyx_memoryview_slice_assign_scalar(__pyx_v_dst_slice, __pyx_v_dst->view.ndim, __pyx_v_self->view.itemsize, __pyx_v_item, __pyx_v_self->dtype_is_object);
24698 PyMem_Free(__pyx_v_tmp);
24703 __Pyx_PyThreadState_declare
24704 __Pyx_PyThreadState_assign
24705 __pyx_t_6 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0;
24706 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
24707 if (PY_MAJOR_VERSION >= 3) __Pyx_ExceptionSwap(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
24708 if ((PY_MAJOR_VERSION < 3) || unlikely(__Pyx_GetException(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8) < 0)) __Pyx_ErrFetch(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
24709 __Pyx_XGOTREF(__pyx_t_6);
24710 __Pyx_XGOTREF(__pyx_t_7);
24711 __Pyx_XGOTREF(__pyx_t_8);
24712 __Pyx_XGOTREF(__pyx_t_9);
24713 __Pyx_XGOTREF(__pyx_t_10);
24714 __Pyx_XGOTREF(__pyx_t_11);
24715 __pyx_t_3 = __pyx_lineno; __pyx_t_4 = __pyx_clineno; __pyx_t_5 = __pyx_filename;
24717 PyMem_Free(__pyx_v_tmp);
24719 if (PY_MAJOR_VERSION >= 3) {
24720 __Pyx_XGIVEREF(__pyx_t_9);
24721 __Pyx_XGIVEREF(__pyx_t_10);
24722 __Pyx_XGIVEREF(__pyx_t_11);
24723 __Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
24725 __Pyx_XGIVEREF(__pyx_t_6);
24726 __Pyx_XGIVEREF(__pyx_t_7);
24727 __Pyx_XGIVEREF(__pyx_t_8);
24728 __Pyx_ErrRestore(__pyx_t_6, __pyx_t_7, __pyx_t_8);
24729 __pyx_t_6 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0; __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0;
24730 __pyx_lineno = __pyx_t_3; __pyx_clineno = __pyx_t_4; __pyx_filename = __pyx_t_5;
24731 goto __pyx_L1_error;
24745 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24748 __Pyx_XDECREF(__pyx_t_2);
24749 __Pyx_AddTraceback(
"View.MemoryView.memoryview.setitem_slice_assign_scalar", __pyx_clineno, __pyx_lineno, __pyx_filename);
24752 __Pyx_XGIVEREF(__pyx_r);
24753 __Pyx_RefNannyFinishContext();
24765 static PyObject *__pyx_memoryview_setitem_indexed(
struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) {
24766 char *__pyx_v_itemp;
24767 PyObject *__pyx_r = NULL;
24768 __Pyx_RefNannyDeclarations
24770 PyObject *__pyx_t_2 = NULL;
24771 __Pyx_RefNannySetupContext(
"setitem_indexed", 0);
24780 __pyx_t_1 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->get_item_pointer(__pyx_v_self, __pyx_v_index);
if (unlikely(__pyx_t_1 == ((
char *)NULL))) __PYX_ERR(0, 478, __pyx_L1_error)
24781 __pyx_v_itemp = __pyx_t_1;
24790 __pyx_t_2 = ((
struct __pyx_vtabstruct_memoryview *)__pyx_v_self->__pyx_vtab)->assign_item_from_object(__pyx_v_self, __pyx_v_itemp, __pyx_v_value);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 479, __pyx_L1_error)
24791 __Pyx_GOTREF(__pyx_t_2);
24792 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
24803 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
24806 __Pyx_XDECREF(__pyx_t_2);
24807 __Pyx_AddTraceback(
"View.MemoryView.memoryview.setitem_indexed", __pyx_clineno, __pyx_lineno, __pyx_filename);
24810 __Pyx_XGIVEREF(__pyx_r);
24811 __Pyx_RefNannyFinishContext();
24823 static PyObject *__pyx_memoryview_convert_item_to_object(
struct __pyx_memoryview_obj *__pyx_v_self,
char *__pyx_v_itemp) {
24824 PyObject *__pyx_v_struct = NULL;
24825 PyObject *__pyx_v_bytesitem = 0;
24826 PyObject *__pyx_v_result = NULL;
24827 PyObject *__pyx_r = NULL;
24828 __Pyx_RefNannyDeclarations
24829 PyObject *__pyx_t_1 = NULL;
24830 PyObject *__pyx_t_2 = NULL;
24831 PyObject *__pyx_t_3 = NULL;
24832 PyObject *__pyx_t_4 = NULL;
24833 PyObject *__pyx_t_5 = NULL;
24834 PyObject *__pyx_t_6 = NULL;
24835 PyObject *__pyx_t_7 = NULL;
24837 PyObject *__pyx_t_9 = NULL;
24840 __Pyx_RefNannySetupContext(
"convert_item_to_object", 0);
24849 __pyx_t_1 = __Pyx_Import(__pyx_n_s_struct, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 484, __pyx_L1_error)
24850 __Pyx_GOTREF(__pyx_t_1);
24851 __pyx_v_struct = __pyx_t_1;
24861 __pyx_t_1 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_itemp + 0, __pyx_v_self->view.itemsize - 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 487, __pyx_L1_error)
24862 __Pyx_GOTREF(__pyx_t_1);
24863 __pyx_v_bytesitem = ((PyObject*)__pyx_t_1);
24874 __Pyx_PyThreadState_declare
24875 __Pyx_PyThreadState_assign
24876 __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4);
24877 __Pyx_XGOTREF(__pyx_t_2);
24878 __Pyx_XGOTREF(__pyx_t_3);
24879 __Pyx_XGOTREF(__pyx_t_4);
24889 __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_unpack);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 489, __pyx_L3_error)
24890 __Pyx_GOTREF(__pyx_t_5);
24891 __pyx_t_6 = __Pyx_PyBytes_FromString(__pyx_v_self->view.format);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 489, __pyx_L3_error)
24892 __Pyx_GOTREF(__pyx_t_6);
24895 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
24896 __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_5);
24897 if (likely(__pyx_t_7)) {
24898 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_5);
24899 __Pyx_INCREF(__pyx_t_7);
24900 __Pyx_INCREF(
function);
24901 __Pyx_DECREF_SET(__pyx_t_5,
function);
24905 #if CYTHON_FAST_PYCALL
24906 if (PyFunction_Check(__pyx_t_5)) {
24907 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_6, __pyx_v_bytesitem};
24908 __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 489, __pyx_L3_error)
24909 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
24910 __Pyx_GOTREF(__pyx_t_1);
24911 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
24914 #if CYTHON_FAST_PYCCALL
24915 if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
24916 PyObject *__pyx_temp[3] = {__pyx_t_7, __pyx_t_6, __pyx_v_bytesitem};
24917 __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-__pyx_t_8, 2+__pyx_t_8);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 489, __pyx_L3_error)
24918 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
24919 __Pyx_GOTREF(__pyx_t_1);
24920 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
24924 __pyx_t_9 = PyTuple_New(2+__pyx_t_8);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 489, __pyx_L3_error)
24925 __Pyx_GOTREF(__pyx_t_9);
24927 __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL;
24929 __Pyx_GIVEREF(__pyx_t_6);
24930 PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_t_6);
24931 __Pyx_INCREF(__pyx_v_bytesitem);
24932 __Pyx_GIVEREF(__pyx_v_bytesitem);
24933 PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_v_bytesitem);
24935 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_9, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 489, __pyx_L3_error)
24936 __Pyx_GOTREF(__pyx_t_1);
24937 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
24939 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
24940 __pyx_v_result = __pyx_t_1;
24960 __pyx_t_10 = strlen(__pyx_v_self->view.format);
24961 __pyx_t_11 = ((__pyx_t_10 == 1) != 0);
24971 __Pyx_XDECREF(__pyx_r);
24972 __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_result, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 494, __pyx_L5_except_error)
24973 __Pyx_GOTREF(__pyx_t_1);
24974 __pyx_r = __pyx_t_1;
24976 goto __pyx_L6_except_return;
24994 __Pyx_XDECREF(__pyx_r);
24995 __Pyx_INCREF(__pyx_v_result);
24996 __pyx_r = __pyx_v_result;
24997 goto __pyx_L6_except_return;
25000 __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
25001 __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
25002 __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
25003 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
25004 __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
25013 __Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_5, &__pyx_t_9);
25014 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_error);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 490, __pyx_L5_except_error)
25015 __Pyx_GOTREF(__pyx_t_6);
25016 __pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_6);
25017 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
25018 __Pyx_ErrRestore(__pyx_t_1, __pyx_t_5, __pyx_t_9);
25019 __pyx_t_1 = 0; __pyx_t_5 = 0; __pyx_t_9 = 0;
25021 __Pyx_AddTraceback(
"View.MemoryView.memoryview.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
25022 if (__Pyx_GetException(&__pyx_t_9, &__pyx_t_5, &__pyx_t_1) < 0) __PYX_ERR(0, 490, __pyx_L5_except_error)
25023 __Pyx_GOTREF(__pyx_t_9);
25024 __Pyx_GOTREF(__pyx_t_5);
25025 __Pyx_GOTREF(__pyx_t_1);
25034 __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__21, NULL);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 491, __pyx_L5_except_error)
25035 __Pyx_GOTREF(__pyx_t_6);
25036 __Pyx_Raise(__pyx_t_6, 0, 0, 0);
25037 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
25038 __PYX_ERR(0, 491, __pyx_L5_except_error)
25040 goto __pyx_L5_except_error;
25041 __pyx_L5_except_error:;
25050 __Pyx_XGIVEREF(__pyx_t_2);
25051 __Pyx_XGIVEREF(__pyx_t_3);
25052 __Pyx_XGIVEREF(__pyx_t_4);
25053 __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
25054 goto __pyx_L1_error;
25055 __pyx_L6_except_return:;
25056 __Pyx_XGIVEREF(__pyx_t_2);
25057 __Pyx_XGIVEREF(__pyx_t_3);
25058 __Pyx_XGIVEREF(__pyx_t_4);
25059 __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
25073 __Pyx_XDECREF(__pyx_t_1);
25074 __Pyx_XDECREF(__pyx_t_5);
25075 __Pyx_XDECREF(__pyx_t_6);
25076 __Pyx_XDECREF(__pyx_t_7);
25077 __Pyx_XDECREF(__pyx_t_9);
25078 __Pyx_AddTraceback(
"View.MemoryView.memoryview.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
25081 __Pyx_XDECREF(__pyx_v_struct);
25082 __Pyx_XDECREF(__pyx_v_bytesitem);
25083 __Pyx_XDECREF(__pyx_v_result);
25084 __Pyx_XGIVEREF(__pyx_r);
25085 __Pyx_RefNannyFinishContext();
25097 static PyObject *__pyx_memoryview_assign_item_from_object(
struct __pyx_memoryview_obj *__pyx_v_self,
char *__pyx_v_itemp, PyObject *__pyx_v_value) {
25098 PyObject *__pyx_v_struct = NULL;
25100 PyObject *__pyx_v_bytesvalue = 0;
25101 Py_ssize_t __pyx_v_i;
25102 PyObject *__pyx_r = NULL;
25103 __Pyx_RefNannyDeclarations
25104 PyObject *__pyx_t_1 = NULL;
25107 PyObject *__pyx_t_4 = NULL;
25108 PyObject *__pyx_t_5 = NULL;
25109 PyObject *__pyx_t_6 = NULL;
25111 PyObject *__pyx_t_8 = NULL;
25112 Py_ssize_t __pyx_t_9;
25113 PyObject *__pyx_t_10 = NULL;
25118 __Pyx_RefNannySetupContext(
"assign_item_from_object", 0);
25127 __pyx_t_1 = __Pyx_Import(__pyx_n_s_struct, 0, 0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 500, __pyx_L1_error)
25128 __Pyx_GOTREF(__pyx_t_1);
25129 __pyx_v_struct = __pyx_t_1;
25139 __pyx_t_2 = PyTuple_Check(__pyx_v_value);
25140 __pyx_t_3 = (__pyx_t_2 != 0);
25150 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_pack);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 506, __pyx_L1_error)
25151 __Pyx_GOTREF(__pyx_t_1);
25152 __pyx_t_4 = __Pyx_PyBytes_FromString(__pyx_v_self->view.format);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 506, __pyx_L1_error)
25153 __Pyx_GOTREF(__pyx_t_4);
25154 __pyx_t_5 = PyTuple_New(1);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 506, __pyx_L1_error)
25155 __Pyx_GOTREF(__pyx_t_5);
25156 __Pyx_GIVEREF(__pyx_t_4);
25157 PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
25159 __pyx_t_4 = __Pyx_PySequence_Tuple(__pyx_v_value);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 506, __pyx_L1_error)
25160 __Pyx_GOTREF(__pyx_t_4);
25161 __pyx_t_6 = PyNumber_Add(__pyx_t_5, __pyx_t_4);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 506, __pyx_L1_error)
25162 __Pyx_GOTREF(__pyx_t_6);
25163 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
25164 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
25165 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_6, NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 506, __pyx_L1_error)
25166 __Pyx_GOTREF(__pyx_t_4);
25167 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
25168 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
25169 if (!(likely(PyBytes_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"bytes", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(0, 506, __pyx_L1_error)
25170 __pyx_v_bytesvalue = ((PyObject*)__pyx_t_4);
25191 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_struct, __pyx_n_s_pack);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 508, __pyx_L1_error)
25192 __Pyx_GOTREF(__pyx_t_6);
25193 __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_self->view.format);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 508, __pyx_L1_error)
25194 __Pyx_GOTREF(__pyx_t_1);
25197 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
25198 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_6);
25199 if (likely(__pyx_t_5)) {
25200 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_6);
25201 __Pyx_INCREF(__pyx_t_5);
25202 __Pyx_INCREF(
function);
25203 __Pyx_DECREF_SET(__pyx_t_6,
function);
25207 #if CYTHON_FAST_PYCALL
25208 if (PyFunction_Check(__pyx_t_6)) {
25209 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_1, __pyx_v_value};
25210 __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 508, __pyx_L1_error)
25211 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
25212 __Pyx_GOTREF(__pyx_t_4);
25213 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
25216 #if CYTHON_FAST_PYCCALL
25217 if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) {
25218 PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_1, __pyx_v_value};
25219 __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_7, 2+__pyx_t_7);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 508, __pyx_L1_error)
25220 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
25221 __Pyx_GOTREF(__pyx_t_4);
25222 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
25226 __pyx_t_8 = PyTuple_New(2+__pyx_t_7);
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 508, __pyx_L1_error)
25227 __Pyx_GOTREF(__pyx_t_8);
25229 __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5); __pyx_t_5 = NULL;
25231 __Pyx_GIVEREF(__pyx_t_1);
25232 PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_1);
25233 __Pyx_INCREF(__pyx_v_value);
25234 __Pyx_GIVEREF(__pyx_v_value);
25235 PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_v_value);
25237 __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_8, NULL);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 508, __pyx_L1_error)
25238 __Pyx_GOTREF(__pyx_t_4);
25239 __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
25241 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
25242 if (!(likely(PyBytes_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"bytes", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(0, 508, __pyx_L1_error)
25243 __pyx_v_bytesvalue = ((PyObject*)__pyx_t_4);
25256 if (unlikely(__pyx_v_bytesvalue == Py_None)) {
25257 PyErr_SetString(PyExc_TypeError,
"'NoneType' is not iterable");
25258 __PYX_ERR(0, 510, __pyx_L1_error)
25260 __Pyx_INCREF(__pyx_v_bytesvalue);
25261 __pyx_t_10 = __pyx_v_bytesvalue;
25262 __pyx_t_12 = PyBytes_AS_STRING(__pyx_t_10);
25263 __pyx_t_13 = (__pyx_t_12 + PyBytes_GET_SIZE(__pyx_t_10));
25264 for (__pyx_t_14 = __pyx_t_12; __pyx_t_14 < __pyx_t_13; __pyx_t_14++) {
25265 __pyx_t_11 = __pyx_t_14;
25266 __pyx_v_c = (__pyx_t_11[0]);
25275 __pyx_v_i = __pyx_t_9;
25284 __pyx_t_9 = (__pyx_t_9 + 1);
25293 (__pyx_v_itemp[__pyx_v_i]) = __pyx_v_c;
25295 __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
25306 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
25309 __Pyx_XDECREF(__pyx_t_1);
25310 __Pyx_XDECREF(__pyx_t_4);
25311 __Pyx_XDECREF(__pyx_t_5);
25312 __Pyx_XDECREF(__pyx_t_6);
25313 __Pyx_XDECREF(__pyx_t_8);
25314 __Pyx_XDECREF(__pyx_t_10);
25315 __Pyx_AddTraceback(
"View.MemoryView.memoryview.assign_item_from_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
25318 __Pyx_XDECREF(__pyx_v_struct);
25319 __Pyx_XDECREF(__pyx_v_bytesvalue);
25320 __Pyx_XGIVEREF(__pyx_r);
25321 __Pyx_RefNannyFinishContext();
25334 static CYTHON_UNUSED
int __pyx_memoryview_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags);
25335 static CYTHON_UNUSED
int __pyx_memoryview_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags) {
25337 __Pyx_RefNannyDeclarations
25338 __Pyx_RefNannySetupContext(
"__getbuffer__ (wrapper)", 0);
25339 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbuffer__(((
struct __pyx_memoryview_obj *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((
int)__pyx_v_flags));
25342 __Pyx_RefNannyFinishContext();
25346 static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbuffer__(
struct __pyx_memoryview_obj *__pyx_v_self, Py_buffer *__pyx_v_info,
int __pyx_v_flags) {
25348 __Pyx_RefNannyDeclarations
25351 PyObject *__pyx_t_3 = NULL;
25352 Py_ssize_t *__pyx_t_4;
25356 Py_ssize_t __pyx_t_8;
25357 if (__pyx_v_info == NULL) {
25358 PyErr_SetString(PyExc_BufferError,
"PyObject_GetBuffer: view==NULL argument is obsolete");
25361 __Pyx_RefNannySetupContext(
"__getbuffer__", 0);
25362 __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None);
25363 __Pyx_GIVEREF(__pyx_v_info->obj);
25372 __pyx_t_2 = ((__pyx_v_flags & PyBUF_WRITABLE) != 0);
25375 __pyx_t_1 = __pyx_t_2;
25376 goto __pyx_L4_bool_binop_done;
25378 __pyx_t_2 = (__pyx_v_self->view.readonly != 0);
25379 __pyx_t_1 = __pyx_t_2;
25380 __pyx_L4_bool_binop_done:;
25381 if (unlikely(__pyx_t_1)) {
25390 __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__22, NULL);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 516, __pyx_L1_error)
25391 __Pyx_GOTREF(__pyx_t_3);
25392 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
25393 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
25394 __PYX_ERR(0, 516, __pyx_L1_error)
25412 __pyx_t_1 = ((__pyx_v_flags & PyBUF_ND) != 0);
25422 __pyx_t_4 = __pyx_v_self->view.shape;
25423 __pyx_v_info->shape = __pyx_t_4;
25443 __pyx_v_info->shape = NULL;
25454 __pyx_t_1 = ((__pyx_v_flags & PyBUF_STRIDES) != 0);
25464 __pyx_t_4 = __pyx_v_self->view.strides;
25465 __pyx_v_info->strides = __pyx_t_4;
25485 __pyx_v_info->strides = NULL;
25496 __pyx_t_1 = ((__pyx_v_flags & PyBUF_INDIRECT) != 0);
25506 __pyx_t_4 = __pyx_v_self->view.suboffsets;
25507 __pyx_v_info->suboffsets = __pyx_t_4;
25527 __pyx_v_info->suboffsets = NULL;
25538 __pyx_t_1 = ((__pyx_v_flags & PyBUF_FORMAT) != 0);
25548 __pyx_t_5 = __pyx_v_self->view.format;
25549 __pyx_v_info->format = __pyx_t_5;
25569 __pyx_v_info->format = NULL;
25580 __pyx_t_6 = __pyx_v_self->view.buf;
25581 __pyx_v_info->buf = __pyx_t_6;
25590 __pyx_t_7 = __pyx_v_self->view.ndim;
25591 __pyx_v_info->ndim = __pyx_t_7;
25600 __pyx_t_8 = __pyx_v_self->view.itemsize;
25601 __pyx_v_info->itemsize = __pyx_t_8;
25610 __pyx_t_8 = __pyx_v_self->view.len;
25611 __pyx_v_info->len = __pyx_t_8;
25620 __pyx_t_1 = __pyx_v_self->view.readonly;
25621 __pyx_v_info->readonly = __pyx_t_1;
25630 __Pyx_INCREF(((PyObject *)__pyx_v_self));
25631 __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
25632 __Pyx_GOTREF(__pyx_v_info->obj);
25633 __Pyx_DECREF(__pyx_v_info->obj);
25634 __pyx_v_info->obj = ((PyObject *)__pyx_v_self);
25648 __Pyx_XDECREF(__pyx_t_3);
25649 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25651 if (__pyx_v_info->obj != NULL) {
25652 __Pyx_GOTREF(__pyx_v_info->obj);
25653 __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
25657 if (__pyx_v_info->obj == Py_None) {
25658 __Pyx_GOTREF(__pyx_v_info->obj);
25659 __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
25662 __Pyx_RefNannyFinishContext();
25675 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_1T_1__get__(PyObject *__pyx_v_self);
25676 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_1T_1__get__(PyObject *__pyx_v_self) {
25677 PyObject *__pyx_r = 0;
25678 __Pyx_RefNannyDeclarations
25679 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
25680 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
25683 __Pyx_RefNannyFinishContext();
25687 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
25688 struct __pyx_memoryviewslice_obj *__pyx_v_result = 0;
25689 PyObject *__pyx_r = NULL;
25690 __Pyx_RefNannyDeclarations
25691 PyObject *__pyx_t_1 = NULL;
25693 __Pyx_RefNannySetupContext(
"__get__", 0);
25702 __pyx_t_1 = __pyx_memoryview_copy_object(__pyx_v_self);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 550, __pyx_L1_error)
25703 __Pyx_GOTREF(__pyx_t_1);
25704 if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_memoryviewslice_type))))) __PYX_ERR(0, 550, __pyx_L1_error)
25705 __pyx_v_result = ((
struct __pyx_memoryviewslice_obj *)__pyx_t_1);
25715 __pyx_t_2 = __pyx_memslice_transpose((&__pyx_v_result->from_slice));
if (unlikely(__pyx_t_2 == ((
int)0))) __PYX_ERR(0, 551, __pyx_L1_error)
25724 __Pyx_XDECREF(__pyx_r);
25725 __Pyx_INCREF(((PyObject *)__pyx_v_result));
25726 __pyx_r = ((PyObject *)__pyx_v_result);
25739 __Pyx_XDECREF(__pyx_t_1);
25740 __Pyx_AddTraceback(
"View.MemoryView.memoryview.T.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25743 __Pyx_XDECREF((PyObject *)__pyx_v_result);
25744 __Pyx_XGIVEREF(__pyx_r);
25745 __Pyx_RefNannyFinishContext();
25758 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4base_1__get__(PyObject *__pyx_v_self);
25759 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4base_1__get__(PyObject *__pyx_v_self) {
25760 PyObject *__pyx_r = 0;
25761 __Pyx_RefNannyDeclarations
25762 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
25763 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
25766 __Pyx_RefNannyFinishContext();
25770 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
25771 PyObject *__pyx_r = NULL;
25772 __Pyx_RefNannyDeclarations
25773 __Pyx_RefNannySetupContext(
"__get__", 0);
25782 __Pyx_XDECREF(__pyx_r);
25783 __Pyx_INCREF(__pyx_v_self->obj);
25784 __pyx_r = __pyx_v_self->obj;
25797 __Pyx_XGIVEREF(__pyx_r);
25798 __Pyx_RefNannyFinishContext();
25811 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_5shape_1__get__(PyObject *__pyx_v_self);
25812 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_5shape_1__get__(PyObject *__pyx_v_self) {
25813 PyObject *__pyx_r = 0;
25814 __Pyx_RefNannyDeclarations
25815 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
25816 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_5shape___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
25819 __Pyx_RefNannyFinishContext();
25823 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_5shape___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
25824 Py_ssize_t __pyx_v_length;
25825 PyObject *__pyx_r = NULL;
25826 __Pyx_RefNannyDeclarations
25827 PyObject *__pyx_t_1 = NULL;
25828 Py_ssize_t *__pyx_t_2;
25829 Py_ssize_t *__pyx_t_3;
25830 Py_ssize_t *__pyx_t_4;
25831 PyObject *__pyx_t_5 = NULL;
25832 __Pyx_RefNannySetupContext(
"__get__", 0);
25841 __Pyx_XDECREF(__pyx_r);
25842 __pyx_t_1 = PyList_New(0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 560, __pyx_L1_error)
25843 __Pyx_GOTREF(__pyx_t_1);
25844 __pyx_t_3 = (__pyx_v_self->view.shape + __pyx_v_self->view.ndim);
25845 for (__pyx_t_4 = __pyx_v_self->view.shape; __pyx_t_4 < __pyx_t_3; __pyx_t_4++) {
25846 __pyx_t_2 = __pyx_t_4;
25847 __pyx_v_length = (__pyx_t_2[0]);
25848 __pyx_t_5 = PyInt_FromSsize_t(__pyx_v_length);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 560, __pyx_L1_error)
25849 __Pyx_GOTREF(__pyx_t_5);
25850 if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_5))) __PYX_ERR(0, 560, __pyx_L1_error)
25851 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
25853 __pyx_t_5 = PyList_AsTuple(((PyObject*)__pyx_t_1));
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 560, __pyx_L1_error)
25854 __Pyx_GOTREF(__pyx_t_5);
25855 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
25856 __pyx_r = __pyx_t_5;
25870 __Pyx_XDECREF(__pyx_t_1);
25871 __Pyx_XDECREF(__pyx_t_5);
25872 __Pyx_AddTraceback(
"View.MemoryView.memoryview.shape.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25875 __Pyx_XGIVEREF(__pyx_r);
25876 __Pyx_RefNannyFinishContext();
25889 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_7strides_1__get__(PyObject *__pyx_v_self);
25890 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_7strides_1__get__(PyObject *__pyx_v_self) {
25891 PyObject *__pyx_r = 0;
25892 __Pyx_RefNannyDeclarations
25893 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
25894 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
25897 __Pyx_RefNannyFinishContext();
25901 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
25902 Py_ssize_t __pyx_v_stride;
25903 PyObject *__pyx_r = NULL;
25904 __Pyx_RefNannyDeclarations
25906 PyObject *__pyx_t_2 = NULL;
25907 Py_ssize_t *__pyx_t_3;
25908 Py_ssize_t *__pyx_t_4;
25909 Py_ssize_t *__pyx_t_5;
25910 PyObject *__pyx_t_6 = NULL;
25911 __Pyx_RefNannySetupContext(
"__get__", 0);
25920 __pyx_t_1 = ((__pyx_v_self->view.strides == NULL) != 0);
25921 if (unlikely(__pyx_t_1)) {
25930 __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__23, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 566, __pyx_L1_error)
25931 __Pyx_GOTREF(__pyx_t_2);
25932 __Pyx_Raise(__pyx_t_2, 0, 0, 0);
25933 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
25934 __PYX_ERR(0, 566, __pyx_L1_error)
25952 __Pyx_XDECREF(__pyx_r);
25953 __pyx_t_2 = PyList_New(0);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 568, __pyx_L1_error)
25954 __Pyx_GOTREF(__pyx_t_2);
25955 __pyx_t_4 = (__pyx_v_self->view.strides + __pyx_v_self->view.ndim);
25956 for (__pyx_t_5 = __pyx_v_self->view.strides; __pyx_t_5 < __pyx_t_4; __pyx_t_5++) {
25957 __pyx_t_3 = __pyx_t_5;
25958 __pyx_v_stride = (__pyx_t_3[0]);
25959 __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_stride);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 568, __pyx_L1_error)
25960 __Pyx_GOTREF(__pyx_t_6);
25961 if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 568, __pyx_L1_error)
25962 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
25964 __pyx_t_6 = PyList_AsTuple(((PyObject*)__pyx_t_2));
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 568, __pyx_L1_error)
25965 __Pyx_GOTREF(__pyx_t_6);
25966 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
25967 __pyx_r = __pyx_t_6;
25981 __Pyx_XDECREF(__pyx_t_2);
25982 __Pyx_XDECREF(__pyx_t_6);
25983 __Pyx_AddTraceback(
"View.MemoryView.memoryview.strides.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
25986 __Pyx_XGIVEREF(__pyx_r);
25987 __Pyx_RefNannyFinishContext();
26000 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_10suboffsets_1__get__(PyObject *__pyx_v_self);
26001 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_10suboffsets_1__get__(PyObject *__pyx_v_self) {
26002 PyObject *__pyx_r = 0;
26003 __Pyx_RefNannyDeclarations
26004 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
26005 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
26008 __Pyx_RefNannyFinishContext();
26012 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
26013 Py_ssize_t __pyx_v_suboffset;
26014 PyObject *__pyx_r = NULL;
26015 __Pyx_RefNannyDeclarations
26017 PyObject *__pyx_t_2 = NULL;
26018 PyObject *__pyx_t_3 = NULL;
26019 Py_ssize_t *__pyx_t_4;
26020 Py_ssize_t *__pyx_t_5;
26021 Py_ssize_t *__pyx_t_6;
26022 __Pyx_RefNannySetupContext(
"__get__", 0);
26031 __pyx_t_1 = ((__pyx_v_self->view.suboffsets == NULL) != 0);
26041 __Pyx_XDECREF(__pyx_r);
26042 __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->view.ndim);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 573, __pyx_L1_error)
26043 __Pyx_GOTREF(__pyx_t_2);
26044 __pyx_t_3 = PyNumber_Multiply(__pyx_tuple__24, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 573, __pyx_L1_error)
26045 __Pyx_GOTREF(__pyx_t_3);
26046 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
26047 __pyx_r = __pyx_t_3;
26067 __Pyx_XDECREF(__pyx_r);
26068 __pyx_t_3 = PyList_New(0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 575, __pyx_L1_error)
26069 __Pyx_GOTREF(__pyx_t_3);
26070 __pyx_t_5 = (__pyx_v_self->view.suboffsets + __pyx_v_self->view.ndim);
26071 for (__pyx_t_6 = __pyx_v_self->view.suboffsets; __pyx_t_6 < __pyx_t_5; __pyx_t_6++) {
26072 __pyx_t_4 = __pyx_t_6;
26073 __pyx_v_suboffset = (__pyx_t_4[0]);
26074 __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_suboffset);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 575, __pyx_L1_error)
26075 __Pyx_GOTREF(__pyx_t_2);
26076 if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 575, __pyx_L1_error)
26077 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
26079 __pyx_t_2 = PyList_AsTuple(((PyObject*)__pyx_t_3));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 575, __pyx_L1_error)
26080 __Pyx_GOTREF(__pyx_t_2);
26081 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
26082 __pyx_r = __pyx_t_2;
26096 __Pyx_XDECREF(__pyx_t_2);
26097 __Pyx_XDECREF(__pyx_t_3);
26098 __Pyx_AddTraceback(
"View.MemoryView.memoryview.suboffsets.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26101 __Pyx_XGIVEREF(__pyx_r);
26102 __Pyx_RefNannyFinishContext();
26115 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4ndim_1__get__(PyObject *__pyx_v_self);
26116 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4ndim_1__get__(PyObject *__pyx_v_self) {
26117 PyObject *__pyx_r = 0;
26118 __Pyx_RefNannyDeclarations
26119 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
26120 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_4ndim___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
26123 __Pyx_RefNannyFinishContext();
26127 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4ndim___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
26128 PyObject *__pyx_r = NULL;
26129 __Pyx_RefNannyDeclarations
26130 PyObject *__pyx_t_1 = NULL;
26131 __Pyx_RefNannySetupContext(
"__get__", 0);
26140 __Pyx_XDECREF(__pyx_r);
26141 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->view.ndim);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 579, __pyx_L1_error)
26142 __Pyx_GOTREF(__pyx_t_1);
26143 __pyx_r = __pyx_t_1;
26157 __Pyx_XDECREF(__pyx_t_1);
26158 __Pyx_AddTraceback(
"View.MemoryView.memoryview.ndim.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26161 __Pyx_XGIVEREF(__pyx_r);
26162 __Pyx_RefNannyFinishContext();
26175 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_8itemsize_1__get__(PyObject *__pyx_v_self);
26176 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_8itemsize_1__get__(PyObject *__pyx_v_self) {
26177 PyObject *__pyx_r = 0;
26178 __Pyx_RefNannyDeclarations
26179 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
26180 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_8itemsize___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
26183 __Pyx_RefNannyFinishContext();
26187 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_8itemsize___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
26188 PyObject *__pyx_r = NULL;
26189 __Pyx_RefNannyDeclarations
26190 PyObject *__pyx_t_1 = NULL;
26191 __Pyx_RefNannySetupContext(
"__get__", 0);
26200 __Pyx_XDECREF(__pyx_r);
26201 __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->view.itemsize);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 583, __pyx_L1_error)
26202 __Pyx_GOTREF(__pyx_t_1);
26203 __pyx_r = __pyx_t_1;
26217 __Pyx_XDECREF(__pyx_t_1);
26218 __Pyx_AddTraceback(
"View.MemoryView.memoryview.itemsize.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26221 __Pyx_XGIVEREF(__pyx_r);
26222 __Pyx_RefNannyFinishContext();
26235 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_6nbytes_1__get__(PyObject *__pyx_v_self);
26236 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_6nbytes_1__get__(PyObject *__pyx_v_self) {
26237 PyObject *__pyx_r = 0;
26238 __Pyx_RefNannyDeclarations
26239 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
26240 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_6nbytes___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
26243 __Pyx_RefNannyFinishContext();
26247 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_6nbytes___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
26248 PyObject *__pyx_r = NULL;
26249 __Pyx_RefNannyDeclarations
26250 PyObject *__pyx_t_1 = NULL;
26251 PyObject *__pyx_t_2 = NULL;
26252 PyObject *__pyx_t_3 = NULL;
26253 __Pyx_RefNannySetupContext(
"__get__", 0);
26262 __Pyx_XDECREF(__pyx_r);
26263 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_size);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 587, __pyx_L1_error)
26264 __Pyx_GOTREF(__pyx_t_1);
26265 __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->view.itemsize);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 587, __pyx_L1_error)
26266 __Pyx_GOTREF(__pyx_t_2);
26267 __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 587, __pyx_L1_error)
26268 __Pyx_GOTREF(__pyx_t_3);
26269 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
26270 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
26271 __pyx_r = __pyx_t_3;
26285 __Pyx_XDECREF(__pyx_t_1);
26286 __Pyx_XDECREF(__pyx_t_2);
26287 __Pyx_XDECREF(__pyx_t_3);
26288 __Pyx_AddTraceback(
"View.MemoryView.memoryview.nbytes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26291 __Pyx_XGIVEREF(__pyx_r);
26292 __Pyx_RefNannyFinishContext();
26305 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4size_1__get__(PyObject *__pyx_v_self);
26306 static PyObject *__pyx_pw_15View_dot_MemoryView_10memoryview_4size_1__get__(PyObject *__pyx_v_self) {
26307 PyObject *__pyx_r = 0;
26308 __Pyx_RefNannyDeclarations
26309 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
26310 __pyx_r = __pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
26313 __Pyx_RefNannyFinishContext();
26317 static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(
struct __pyx_memoryview_obj *__pyx_v_self) {
26318 PyObject *__pyx_v_result = NULL;
26319 PyObject *__pyx_v_length = NULL;
26320 PyObject *__pyx_r = NULL;
26321 __Pyx_RefNannyDeclarations
26324 Py_ssize_t *__pyx_t_3;
26325 Py_ssize_t *__pyx_t_4;
26326 Py_ssize_t *__pyx_t_5;
26327 PyObject *__pyx_t_6 = NULL;
26328 __Pyx_RefNannySetupContext(
"__get__", 0);
26337 __pyx_t_1 = (__pyx_v_self->_size == Py_None);
26338 __pyx_t_2 = (__pyx_t_1 != 0);
26348 __Pyx_INCREF(__pyx_int_1);
26349 __pyx_v_result = __pyx_int_1;
26358 __pyx_t_4 = (__pyx_v_self->view.shape + __pyx_v_self->view.ndim);
26359 for (__pyx_t_5 = __pyx_v_self->view.shape; __pyx_t_5 < __pyx_t_4; __pyx_t_5++) {
26360 __pyx_t_3 = __pyx_t_5;
26361 __pyx_t_6 = PyInt_FromSsize_t((__pyx_t_3[0]));
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 594, __pyx_L1_error)
26362 __Pyx_GOTREF(__pyx_t_6);
26363 __Pyx_XDECREF_SET(__pyx_v_length, __pyx_t_6);
26373 __pyx_t_6 = PyNumber_InPlaceMultiply(__pyx_v_result, __pyx_v_length);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 595, __pyx_L1_error)
26374 __Pyx_GOTREF(__pyx_t_6);
26375 __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_6);
26386 __Pyx_INCREF(__pyx_v_result);
26387 __Pyx_GIVEREF(__pyx_v_result);
26388 __Pyx_GOTREF(__pyx_v_self->_size);
26389 __Pyx_DECREF(__pyx_v_self->_size);
26390 __pyx_v_self->_size = __pyx_v_result;
26408 __Pyx_XDECREF(__pyx_r);
26409 __Pyx_INCREF(__pyx_v_self->_size);
26410 __pyx_r = __pyx_v_self->_size;
26423 __Pyx_XDECREF(__pyx_t_6);
26424 __Pyx_AddTraceback(
"View.MemoryView.memoryview.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26427 __Pyx_XDECREF(__pyx_v_result);
26428 __Pyx_XDECREF(__pyx_v_length);
26429 __Pyx_XGIVEREF(__pyx_r);
26430 __Pyx_RefNannyFinishContext();
26443 static Py_ssize_t __pyx_memoryview___len__(PyObject *__pyx_v_self);
26444 static Py_ssize_t __pyx_memoryview___len__(PyObject *__pyx_v_self) {
26445 Py_ssize_t __pyx_r;
26446 __Pyx_RefNannyDeclarations
26447 __Pyx_RefNannySetupContext(
"__len__ (wrapper)", 0);
26448 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_10__len__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
26451 __Pyx_RefNannyFinishContext();
26455 static Py_ssize_t __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_10__len__(
struct __pyx_memoryview_obj *__pyx_v_self) {
26456 Py_ssize_t __pyx_r;
26457 __Pyx_RefNannyDeclarations
26459 __Pyx_RefNannySetupContext(
"__len__", 0);
26468 __pyx_t_1 = ((__pyx_v_self->view.ndim >= 1) != 0);
26478 __pyx_r = (__pyx_v_self->view.shape[0]);
26510 __Pyx_RefNannyFinishContext();
26523 static PyObject *__pyx_memoryview___repr__(PyObject *__pyx_v_self);
26524 static PyObject *__pyx_memoryview___repr__(PyObject *__pyx_v_self) {
26525 PyObject *__pyx_r = 0;
26526 __Pyx_RefNannyDeclarations
26527 __Pyx_RefNannySetupContext(
"__repr__ (wrapper)", 0);
26528 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12__repr__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
26531 __Pyx_RefNannyFinishContext();
26535 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12__repr__(
struct __pyx_memoryview_obj *__pyx_v_self) {
26536 PyObject *__pyx_r = NULL;
26537 __Pyx_RefNannyDeclarations
26538 PyObject *__pyx_t_1 = NULL;
26539 PyObject *__pyx_t_2 = NULL;
26540 PyObject *__pyx_t_3 = NULL;
26541 __Pyx_RefNannySetupContext(
"__repr__", 0);
26550 __Pyx_XDECREF(__pyx_r);
26551 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_base);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 608, __pyx_L1_error)
26552 __Pyx_GOTREF(__pyx_t_1);
26553 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_class);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 608, __pyx_L1_error)
26554 __Pyx_GOTREF(__pyx_t_2);
26555 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
26556 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 608, __pyx_L1_error)
26557 __Pyx_GOTREF(__pyx_t_1);
26558 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
26567 __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, ((PyObject *)__pyx_v_self));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 609, __pyx_L1_error)
26568 __Pyx_GOTREF(__pyx_t_2);
26577 __pyx_t_3 = PyTuple_New(2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 608, __pyx_L1_error)
26578 __Pyx_GOTREF(__pyx_t_3);
26579 __Pyx_GIVEREF(__pyx_t_1);
26580 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
26581 __Pyx_GIVEREF(__pyx_t_2);
26582 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
26585 __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_MemoryView_of_r_at_0x_x, __pyx_t_3);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 608, __pyx_L1_error)
26586 __Pyx_GOTREF(__pyx_t_2);
26587 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
26588 __pyx_r = __pyx_t_2;
26602 __Pyx_XDECREF(__pyx_t_1);
26603 __Pyx_XDECREF(__pyx_t_2);
26604 __Pyx_XDECREF(__pyx_t_3);
26605 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26608 __Pyx_XGIVEREF(__pyx_r);
26609 __Pyx_RefNannyFinishContext();
26622 static PyObject *__pyx_memoryview___str__(PyObject *__pyx_v_self);
26623 static PyObject *__pyx_memoryview___str__(PyObject *__pyx_v_self) {
26624 PyObject *__pyx_r = 0;
26625 __Pyx_RefNannyDeclarations
26626 __Pyx_RefNannySetupContext(
"__str__ (wrapper)", 0);
26627 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_14__str__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
26630 __Pyx_RefNannyFinishContext();
26634 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_14__str__(
struct __pyx_memoryview_obj *__pyx_v_self) {
26635 PyObject *__pyx_r = NULL;
26636 __Pyx_RefNannyDeclarations
26637 PyObject *__pyx_t_1 = NULL;
26638 PyObject *__pyx_t_2 = NULL;
26639 __Pyx_RefNannySetupContext(
"__str__", 0);
26648 __Pyx_XDECREF(__pyx_r);
26649 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_base);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 612, __pyx_L1_error)
26650 __Pyx_GOTREF(__pyx_t_1);
26651 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_class);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 612, __pyx_L1_error)
26652 __Pyx_GOTREF(__pyx_t_2);
26653 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
26654 __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_name_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 612, __pyx_L1_error)
26655 __Pyx_GOTREF(__pyx_t_1);
26656 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
26657 __pyx_t_2 = PyTuple_New(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 612, __pyx_L1_error)
26658 __Pyx_GOTREF(__pyx_t_2);
26659 __Pyx_GIVEREF(__pyx_t_1);
26660 PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
26662 __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_MemoryView_of_r_object, __pyx_t_2);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 612, __pyx_L1_error)
26663 __Pyx_GOTREF(__pyx_t_1);
26664 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
26665 __pyx_r = __pyx_t_1;
26679 __Pyx_XDECREF(__pyx_t_1);
26680 __Pyx_XDECREF(__pyx_t_2);
26681 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
26684 __Pyx_XGIVEREF(__pyx_r);
26685 __Pyx_RefNannyFinishContext();
26698 static PyObject *__pyx_memoryview_is_c_contig(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
26699 static PyObject *__pyx_memoryview_is_c_contig(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
26700 PyObject *__pyx_r = 0;
26701 __Pyx_RefNannyDeclarations
26702 __Pyx_RefNannySetupContext(
"is_c_contig (wrapper)", 0);
26703 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16is_c_contig(((
struct __pyx_memoryview_obj *)__pyx_v_self));
26706 __Pyx_RefNannyFinishContext();
26710 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16is_c_contig(
struct __pyx_memoryview_obj *__pyx_v_self) {
26711 __Pyx_memviewslice *__pyx_v_mslice;
26712 __Pyx_memviewslice __pyx_v_tmp;
26713 PyObject *__pyx_r = NULL;
26714 __Pyx_RefNannyDeclarations
26715 PyObject *__pyx_t_1 = NULL;
26716 __Pyx_RefNannySetupContext(
"is_c_contig", 0);
26725 __pyx_v_mslice = __pyx_memoryview_get_slice_from_memoryview(__pyx_v_self, (&__pyx_v_tmp));
26734 __Pyx_XDECREF(__pyx_r);
26735 __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_memviewslice_is_contig((__pyx_v_mslice[0]),
'C', __pyx_v_self->view.ndim));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 619, __pyx_L1_error)
26736 __Pyx_GOTREF(__pyx_t_1);
26737 __pyx_r = __pyx_t_1;
26751 __Pyx_XDECREF(__pyx_t_1);
26752 __Pyx_AddTraceback(
"View.MemoryView.memoryview.is_c_contig", __pyx_clineno, __pyx_lineno, __pyx_filename);
26755 __Pyx_XGIVEREF(__pyx_r);
26756 __Pyx_RefNannyFinishContext();
26769 static PyObject *__pyx_memoryview_is_f_contig(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
26770 static PyObject *__pyx_memoryview_is_f_contig(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
26771 PyObject *__pyx_r = 0;
26772 __Pyx_RefNannyDeclarations
26773 __Pyx_RefNannySetupContext(
"is_f_contig (wrapper)", 0);
26774 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18is_f_contig(((
struct __pyx_memoryview_obj *)__pyx_v_self));
26777 __Pyx_RefNannyFinishContext();
26781 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18is_f_contig(
struct __pyx_memoryview_obj *__pyx_v_self) {
26782 __Pyx_memviewslice *__pyx_v_mslice;
26783 __Pyx_memviewslice __pyx_v_tmp;
26784 PyObject *__pyx_r = NULL;
26785 __Pyx_RefNannyDeclarations
26786 PyObject *__pyx_t_1 = NULL;
26787 __Pyx_RefNannySetupContext(
"is_f_contig", 0);
26796 __pyx_v_mslice = __pyx_memoryview_get_slice_from_memoryview(__pyx_v_self, (&__pyx_v_tmp));
26805 __Pyx_XDECREF(__pyx_r);
26806 __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_memviewslice_is_contig((__pyx_v_mslice[0]),
'F', __pyx_v_self->view.ndim));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 625, __pyx_L1_error)
26807 __Pyx_GOTREF(__pyx_t_1);
26808 __pyx_r = __pyx_t_1;
26822 __Pyx_XDECREF(__pyx_t_1);
26823 __Pyx_AddTraceback(
"View.MemoryView.memoryview.is_f_contig", __pyx_clineno, __pyx_lineno, __pyx_filename);
26826 __Pyx_XGIVEREF(__pyx_r);
26827 __Pyx_RefNannyFinishContext();
26840 static PyObject *__pyx_memoryview_copy(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
26841 static PyObject *__pyx_memoryview_copy(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
26842 PyObject *__pyx_r = 0;
26843 __Pyx_RefNannyDeclarations
26844 __Pyx_RefNannySetupContext(
"copy (wrapper)", 0);
26845 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20copy(((
struct __pyx_memoryview_obj *)__pyx_v_self));
26848 __Pyx_RefNannyFinishContext();
26852 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20copy(
struct __pyx_memoryview_obj *__pyx_v_self) {
26853 __Pyx_memviewslice __pyx_v_mslice;
26855 PyObject *__pyx_r = NULL;
26856 __Pyx_RefNannyDeclarations
26857 __Pyx_memviewslice __pyx_t_1;
26858 PyObject *__pyx_t_2 = NULL;
26859 __Pyx_RefNannySetupContext(
"copy", 0);
26868 __pyx_v_flags = (__pyx_v_self->flags & (~PyBUF_F_CONTIGUOUS));
26877 __pyx_memoryview_slice_copy(__pyx_v_self, (&__pyx_v_mslice));
26886 __pyx_t_1 = __pyx_memoryview_copy_new_contig((&__pyx_v_mslice), ((
char *)
"c"), __pyx_v_self->view.ndim, __pyx_v_self->view.itemsize, (__pyx_v_flags | PyBUF_C_CONTIGUOUS), __pyx_v_self->dtype_is_object);
if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 632, __pyx_L1_error)
26887 __pyx_v_mslice = __pyx_t_1;
26896 __Pyx_XDECREF(__pyx_r);
26897 __pyx_t_2 = __pyx_memoryview_copy_object_from_slice(__pyx_v_self, (&__pyx_v_mslice));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 637, __pyx_L1_error)
26898 __Pyx_GOTREF(__pyx_t_2);
26899 __pyx_r = __pyx_t_2;
26913 __Pyx_XDECREF(__pyx_t_2);
26914 __Pyx_AddTraceback(
"View.MemoryView.memoryview.copy", __pyx_clineno, __pyx_lineno, __pyx_filename);
26917 __Pyx_XGIVEREF(__pyx_r);
26918 __Pyx_RefNannyFinishContext();
26931 static PyObject *__pyx_memoryview_copy_fortran(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
26932 static PyObject *__pyx_memoryview_copy_fortran(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
26933 PyObject *__pyx_r = 0;
26934 __Pyx_RefNannyDeclarations
26935 __Pyx_RefNannySetupContext(
"copy_fortran (wrapper)", 0);
26936 __pyx_r = __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22copy_fortran(((
struct __pyx_memoryview_obj *)__pyx_v_self));
26939 __Pyx_RefNannyFinishContext();
26943 static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22copy_fortran(
struct __pyx_memoryview_obj *__pyx_v_self) {
26944 __Pyx_memviewslice __pyx_v_src;
26945 __Pyx_memviewslice __pyx_v_dst;
26947 PyObject *__pyx_r = NULL;
26948 __Pyx_RefNannyDeclarations
26949 __Pyx_memviewslice __pyx_t_1;
26950 PyObject *__pyx_t_2 = NULL;
26951 __Pyx_RefNannySetupContext(
"copy_fortran", 0);
26960 __pyx_v_flags = (__pyx_v_self->flags & (~PyBUF_C_CONTIGUOUS));
26969 __pyx_memoryview_slice_copy(__pyx_v_self, (&__pyx_v_src));
26978 __pyx_t_1 = __pyx_memoryview_copy_new_contig((&__pyx_v_src), ((
char *)
"fortran"), __pyx_v_self->view.ndim, __pyx_v_self->view.itemsize, (__pyx_v_flags | PyBUF_F_CONTIGUOUS), __pyx_v_self->dtype_is_object);
if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 644, __pyx_L1_error)
26979 __pyx_v_dst = __pyx_t_1;
26988 __Pyx_XDECREF(__pyx_r);
26989 __pyx_t_2 = __pyx_memoryview_copy_object_from_slice(__pyx_v_self, (&__pyx_v_dst));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 649, __pyx_L1_error)
26990 __Pyx_GOTREF(__pyx_t_2);
26991 __pyx_r = __pyx_t_2;
27005 __Pyx_XDECREF(__pyx_t_2);
27006 __Pyx_AddTraceback(
"View.MemoryView.memoryview.copy_fortran", __pyx_clineno, __pyx_lineno, __pyx_filename);
27009 __Pyx_XGIVEREF(__pyx_r);
27010 __Pyx_RefNannyFinishContext();
27021 static PyObject *__pyx_pw___pyx_memoryview_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
27022 static PyObject *__pyx_pw___pyx_memoryview_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
27023 PyObject *__pyx_r = 0;
27024 __Pyx_RefNannyDeclarations
27025 __Pyx_RefNannySetupContext(
"__reduce_cython__ (wrapper)", 0);
27026 __pyx_r = __pyx_pf___pyx_memoryview___reduce_cython__(((
struct __pyx_memoryview_obj *)__pyx_v_self));
27029 __Pyx_RefNannyFinishContext();
27033 static PyObject *__pyx_pf___pyx_memoryview___reduce_cython__(CYTHON_UNUSED
struct __pyx_memoryview_obj *__pyx_v_self) {
27034 PyObject *__pyx_r = NULL;
27035 __Pyx_RefNannyDeclarations
27036 PyObject *__pyx_t_1 = NULL;
27037 __Pyx_RefNannySetupContext(
"__reduce_cython__", 0);
27045 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__25, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error)
27046 __Pyx_GOTREF(__pyx_t_1);
27047 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
27048 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
27049 __PYX_ERR(0, 2, __pyx_L1_error)
27059 __Pyx_XDECREF(__pyx_t_1);
27060 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27062 __Pyx_XGIVEREF(__pyx_r);
27063 __Pyx_RefNannyFinishContext();
27075 static PyObject *__pyx_pw___pyx_memoryview_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state);
27076 static PyObject *__pyx_pw___pyx_memoryview_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
27077 PyObject *__pyx_r = 0;
27078 __Pyx_RefNannyDeclarations
27079 __Pyx_RefNannySetupContext(
"__setstate_cython__ (wrapper)", 0);
27080 __pyx_r = __pyx_pf___pyx_memoryview_2__setstate_cython__(((
struct __pyx_memoryview_obj *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
27083 __Pyx_RefNannyFinishContext();
27087 static PyObject *__pyx_pf___pyx_memoryview_2__setstate_cython__(CYTHON_UNUSED
struct __pyx_memoryview_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
27088 PyObject *__pyx_r = NULL;
27089 __Pyx_RefNannyDeclarations
27090 PyObject *__pyx_t_1 = NULL;
27091 __Pyx_RefNannySetupContext(
"__setstate_cython__", 0);
27098 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__26, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4, __pyx_L1_error)
27099 __Pyx_GOTREF(__pyx_t_1);
27100 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
27101 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
27102 __PYX_ERR(0, 4, __pyx_L1_error)
27113 __Pyx_XDECREF(__pyx_t_1);
27114 __Pyx_AddTraceback(
"View.MemoryView.memoryview.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
27116 __Pyx_XGIVEREF(__pyx_r);
27117 __Pyx_RefNannyFinishContext();
27129 static PyObject *__pyx_memoryview_new(PyObject *__pyx_v_o,
int __pyx_v_flags,
int __pyx_v_dtype_is_object, __Pyx_TypeInfo *__pyx_v_typeinfo) {
27130 struct __pyx_memoryview_obj *__pyx_v_result = 0;
27131 PyObject *__pyx_r = NULL;
27132 __Pyx_RefNannyDeclarations
27133 PyObject *__pyx_t_1 = NULL;
27134 PyObject *__pyx_t_2 = NULL;
27135 PyObject *__pyx_t_3 = NULL;
27136 __Pyx_RefNannySetupContext(
"memoryview_cwrapper", 0);
27145 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_flags);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 654, __pyx_L1_error)
27146 __Pyx_GOTREF(__pyx_t_1);
27147 __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_dtype_is_object);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 654, __pyx_L1_error)
27148 __Pyx_GOTREF(__pyx_t_2);
27149 __pyx_t_3 = PyTuple_New(3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 654, __pyx_L1_error)
27150 __Pyx_GOTREF(__pyx_t_3);
27151 __Pyx_INCREF(__pyx_v_o);
27152 __Pyx_GIVEREF(__pyx_v_o);
27153 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_o);
27154 __Pyx_GIVEREF(__pyx_t_1);
27155 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
27156 __Pyx_GIVEREF(__pyx_t_2);
27157 PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2);
27160 __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_memoryview_type), __pyx_t_3, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 654, __pyx_L1_error)
27161 __Pyx_GOTREF(__pyx_t_2);
27162 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
27163 __pyx_v_result = ((
struct __pyx_memoryview_obj *)__pyx_t_2);
27173 __pyx_v_result->typeinfo = __pyx_v_typeinfo;
27182 __Pyx_XDECREF(__pyx_r);
27183 __Pyx_INCREF(((PyObject *)__pyx_v_result));
27184 __pyx_r = ((PyObject *)__pyx_v_result);
27197 __Pyx_XDECREF(__pyx_t_1);
27198 __Pyx_XDECREF(__pyx_t_2);
27199 __Pyx_XDECREF(__pyx_t_3);
27200 __Pyx_AddTraceback(
"View.MemoryView.memoryview_cwrapper", __pyx_clineno, __pyx_lineno, __pyx_filename);
27203 __Pyx_XDECREF((PyObject *)__pyx_v_result);
27204 __Pyx_XGIVEREF(__pyx_r);
27205 __Pyx_RefNannyFinishContext();
27217 static CYTHON_INLINE
int __pyx_memoryview_check(PyObject *__pyx_v_o) {
27219 __Pyx_RefNannyDeclarations
27221 __Pyx_RefNannySetupContext(
"memoryview_check", 0);
27230 __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_o, __pyx_memoryview_type);
27231 __pyx_r = __pyx_t_1;
27244 __Pyx_RefNannyFinishContext();
27256 static PyObject *_unellipsify(PyObject *__pyx_v_index,
int __pyx_v_ndim) {
27257 PyObject *__pyx_v_tup = NULL;
27258 PyObject *__pyx_v_result = NULL;
27259 int __pyx_v_have_slices;
27260 int __pyx_v_seen_ellipsis;
27261 CYTHON_UNUSED PyObject *__pyx_v_idx = NULL;
27262 PyObject *__pyx_v_item = NULL;
27263 Py_ssize_t __pyx_v_nslices;
27264 PyObject *__pyx_r = NULL;
27265 __Pyx_RefNannyDeclarations
27268 PyObject *__pyx_t_3 = NULL;
27269 PyObject *__pyx_t_4 = NULL;
27270 Py_ssize_t __pyx_t_5;
27271 PyObject *(*__pyx_t_6)(PyObject *);
27272 PyObject *__pyx_t_7 = NULL;
27273 Py_ssize_t __pyx_t_8;
27276 PyObject *__pyx_t_11 = NULL;
27277 __Pyx_RefNannySetupContext(
"_unellipsify", 0);
27286 __pyx_t_1 = PyTuple_Check(__pyx_v_index);
27287 __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
27297 __pyx_t_3 = PyTuple_New(1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 668, __pyx_L1_error)
27298 __Pyx_GOTREF(__pyx_t_3);
27299 __Pyx_INCREF(__pyx_v_index);
27300 __Pyx_GIVEREF(__pyx_v_index);
27301 PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_index);
27302 __pyx_v_tup = __pyx_t_3;
27323 __Pyx_INCREF(__pyx_v_index);
27324 __pyx_v_tup = __pyx_v_index;
27335 __pyx_t_3 = PyList_New(0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 672, __pyx_L1_error)
27336 __Pyx_GOTREF(__pyx_t_3);
27337 __pyx_v_result = ((PyObject*)__pyx_t_3);
27347 __pyx_v_have_slices = 0;
27356 __pyx_v_seen_ellipsis = 0;
27365 __Pyx_INCREF(__pyx_int_0);
27366 __pyx_t_3 = __pyx_int_0;
27367 if (likely(PyList_CheckExact(__pyx_v_tup)) || PyTuple_CheckExact(__pyx_v_tup)) {
27368 __pyx_t_4 = __pyx_v_tup; __Pyx_INCREF(__pyx_t_4); __pyx_t_5 = 0;
27371 __pyx_t_5 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_tup);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 675, __pyx_L1_error)
27372 __Pyx_GOTREF(__pyx_t_4);
27373 __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext;
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 675, __pyx_L1_error)
27376 if (likely(!__pyx_t_6)) {
27377 if (likely(PyList_CheckExact(__pyx_t_4))) {
27378 if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_4))
break;
27379 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
27380 __pyx_t_7 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++;
if (unlikely(0 < 0)) __PYX_ERR(0, 675, __pyx_L1_error)
27382 __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++;
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 675, __pyx_L1_error)
27383 __Pyx_GOTREF(__pyx_t_7);
27386 if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_4))
break;
27387 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
27388 __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++;
if (unlikely(0 < 0)) __PYX_ERR(0, 675, __pyx_L1_error)
27390 __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++;
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 675, __pyx_L1_error)
27391 __Pyx_GOTREF(__pyx_t_7);
27395 __pyx_t_7 = __pyx_t_6(__pyx_t_4);
27396 if (unlikely(!__pyx_t_7)) {
27397 PyObject* exc_type = PyErr_Occurred();
27399 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
27400 else __PYX_ERR(0, 675, __pyx_L1_error)
27404 __Pyx_GOTREF(__pyx_t_7);
27406 __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_7);
27408 __Pyx_INCREF(__pyx_t_3);
27409 __Pyx_XDECREF_SET(__pyx_v_idx, __pyx_t_3);
27410 __pyx_t_7 = __Pyx_PyInt_AddObjC(__pyx_t_3, __pyx_int_1, 1, 0);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 675, __pyx_L1_error)
27411 __Pyx_GOTREF(__pyx_t_7);
27412 __Pyx_DECREF(__pyx_t_3);
27413 __pyx_t_3 = __pyx_t_7;
27423 __pyx_t_2 = (__pyx_v_item == __pyx_builtin_Ellipsis);
27424 __pyx_t_1 = (__pyx_t_2 != 0);
27434 __pyx_t_1 = ((!(__pyx_v_seen_ellipsis != 0)) != 0);
27444 __pyx_t_8 = PyObject_Length(__pyx_v_tup);
if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(0, 678, __pyx_L1_error)
27445 __pyx_t_7 = PyList_New(1 * ((((__pyx_v_ndim - __pyx_t_8) + 1)<0) ? 0:((__pyx_v_ndim - __pyx_t_8) + 1)));
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 678, __pyx_L1_error)
27446 __Pyx_GOTREF(__pyx_t_7);
27447 { Py_ssize_t __pyx_temp;
27448 for (__pyx_temp=0; __pyx_temp < ((__pyx_v_ndim - __pyx_t_8) + 1); __pyx_temp++) {
27449 __Pyx_INCREF(__pyx_slice__27);
27450 __Pyx_GIVEREF(__pyx_slice__27);
27451 PyList_SET_ITEM(__pyx_t_7, __pyx_temp, __pyx_slice__27);
27454 __pyx_t_9 = __Pyx_PyList_Extend(__pyx_v_result, __pyx_t_7);
if (unlikely(__pyx_t_9 == ((
int)-1))) __PYX_ERR(0, 678, __pyx_L1_error)
27455 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
27464 __pyx_v_seen_ellipsis = 1;
27484 __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_result, __pyx_slice__27);
if (unlikely(__pyx_t_9 == ((
int)-1))) __PYX_ERR(0, 681, __pyx_L1_error)
27495 __pyx_v_have_slices = 1;
27515 __pyx_t_2 = PySlice_Check(__pyx_v_item);
27516 __pyx_t_10 = ((!(__pyx_t_2 != 0)) != 0);
27519 __pyx_t_1 = __pyx_t_10;
27520 goto __pyx_L9_bool_binop_done;
27522 __pyx_t_10 = ((!(PyIndex_Check(__pyx_v_item) != 0)) != 0);
27523 __pyx_t_1 = __pyx_t_10;
27524 __pyx_L9_bool_binop_done:;
27525 if (unlikely(__pyx_t_1)) {
27534 __pyx_t_7 = __Pyx_PyString_FormatSafe(__pyx_kp_s_Cannot_index_with_type_s, ((PyObject *)Py_TYPE(__pyx_v_item)));
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 685, __pyx_L1_error)
27535 __Pyx_GOTREF(__pyx_t_7);
27536 __pyx_t_11 = __Pyx_PyObject_CallOneArg(__pyx_builtin_TypeError, __pyx_t_7);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 685, __pyx_L1_error)
27537 __Pyx_GOTREF(__pyx_t_11);
27538 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
27539 __Pyx_Raise(__pyx_t_11, 0, 0, 0);
27540 __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
27541 __PYX_ERR(0, 685, __pyx_L1_error)
27559 __pyx_t_10 = (__pyx_v_have_slices != 0);
27562 __pyx_t_1 = __pyx_t_10;
27563 goto __pyx_L11_bool_binop_done;
27565 __pyx_t_10 = PySlice_Check(__pyx_v_item);
27566 __pyx_t_2 = (__pyx_t_10 != 0);
27567 __pyx_t_1 = __pyx_t_2;
27568 __pyx_L11_bool_binop_done:;
27569 __pyx_v_have_slices = __pyx_t_1;
27578 __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_result, __pyx_v_item);
if (unlikely(__pyx_t_9 == ((
int)-1))) __PYX_ERR(0, 688, __pyx_L1_error)
27590 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
27591 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
27600 __pyx_t_5 = PyList_GET_SIZE(__pyx_v_result);
if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 690, __pyx_L1_error)
27601 __pyx_v_nslices = (__pyx_v_ndim - __pyx_t_5);
27610 __pyx_t_1 = (__pyx_v_nslices != 0);
27620 __pyx_t_3 = PyList_New(1 * ((__pyx_v_nslices<0) ? 0:__pyx_v_nslices));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 692, __pyx_L1_error)
27621 __Pyx_GOTREF(__pyx_t_3);
27622 { Py_ssize_t __pyx_temp;
27623 for (__pyx_temp=0; __pyx_temp < __pyx_v_nslices; __pyx_temp++) {
27624 __Pyx_INCREF(__pyx_slice__27);
27625 __Pyx_GIVEREF(__pyx_slice__27);
27626 PyList_SET_ITEM(__pyx_t_3, __pyx_temp, __pyx_slice__27);
27629 __pyx_t_9 = __Pyx_PyList_Extend(__pyx_v_result, __pyx_t_3);
if (unlikely(__pyx_t_9 == ((
int)-1))) __PYX_ERR(0, 692, __pyx_L1_error)
27630 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
27648 __Pyx_XDECREF(__pyx_r);
27649 if (!__pyx_v_have_slices) {
27651 __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_have_slices);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 694, __pyx_L1_error)
27652 __Pyx_GOTREF(__pyx_t_4);
27653 __pyx_t_3 = __pyx_t_4;
27655 goto __pyx_L14_bool_binop_done;
27657 __pyx_t_4 = PyInt_FromSsize_t(__pyx_v_nslices);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 694, __pyx_L1_error)
27658 __Pyx_GOTREF(__pyx_t_4);
27659 __pyx_t_3 = __pyx_t_4;
27661 __pyx_L14_bool_binop_done:;
27662 __pyx_t_4 = PyList_AsTuple(__pyx_v_result);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 694, __pyx_L1_error)
27663 __Pyx_GOTREF(__pyx_t_4);
27664 __pyx_t_11 = PyTuple_New(2);
if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 694, __pyx_L1_error)
27665 __Pyx_GOTREF(__pyx_t_11);
27666 __Pyx_GIVEREF(__pyx_t_3);
27667 PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_3);
27668 __Pyx_GIVEREF(__pyx_t_4);
27669 PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_4);
27672 __pyx_r = ((PyObject*)__pyx_t_11);
27686 __Pyx_XDECREF(__pyx_t_3);
27687 __Pyx_XDECREF(__pyx_t_4);
27688 __Pyx_XDECREF(__pyx_t_7);
27689 __Pyx_XDECREF(__pyx_t_11);
27690 __Pyx_AddTraceback(
"View.MemoryView._unellipsify", __pyx_clineno, __pyx_lineno, __pyx_filename);
27693 __Pyx_XDECREF(__pyx_v_tup);
27694 __Pyx_XDECREF(__pyx_v_result);
27695 __Pyx_XDECREF(__pyx_v_idx);
27696 __Pyx_XDECREF(__pyx_v_item);
27697 __Pyx_XGIVEREF(__pyx_r);
27698 __Pyx_RefNannyFinishContext();
27710 static PyObject *assert_direct_dimensions(Py_ssize_t *__pyx_v_suboffsets,
int __pyx_v_ndim) {
27711 Py_ssize_t __pyx_v_suboffset;
27712 PyObject *__pyx_r = NULL;
27713 __Pyx_RefNannyDeclarations
27714 Py_ssize_t *__pyx_t_1;
27715 Py_ssize_t *__pyx_t_2;
27716 Py_ssize_t *__pyx_t_3;
27718 PyObject *__pyx_t_5 = NULL;
27719 __Pyx_RefNannySetupContext(
"assert_direct_dimensions", 0);
27728 __pyx_t_2 = (__pyx_v_suboffsets + __pyx_v_ndim);
27729 for (__pyx_t_3 = __pyx_v_suboffsets; __pyx_t_3 < __pyx_t_2; __pyx_t_3++) {
27730 __pyx_t_1 = __pyx_t_3;
27731 __pyx_v_suboffset = (__pyx_t_1[0]);
27740 __pyx_t_4 = ((__pyx_v_suboffset >= 0) != 0);
27741 if (unlikely(__pyx_t_4)) {
27750 __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__28, NULL);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 699, __pyx_L1_error)
27751 __Pyx_GOTREF(__pyx_t_5);
27752 __Pyx_Raise(__pyx_t_5, 0, 0, 0);
27753 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
27754 __PYX_ERR(0, 699, __pyx_L1_error)
27775 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
27778 __Pyx_XDECREF(__pyx_t_5);
27779 __Pyx_AddTraceback(
"View.MemoryView.assert_direct_dimensions", __pyx_clineno, __pyx_lineno, __pyx_filename);
27782 __Pyx_XGIVEREF(__pyx_r);
27783 __Pyx_RefNannyFinishContext();
27795 static struct __pyx_memoryview_obj *__pyx_memview_slice(
struct __pyx_memoryview_obj *__pyx_v_memview, PyObject *__pyx_v_indices) {
27796 int __pyx_v_new_ndim;
27797 int __pyx_v_suboffset_dim;
27799 __Pyx_memviewslice __pyx_v_src;
27800 __Pyx_memviewslice __pyx_v_dst;
27801 __Pyx_memviewslice *__pyx_v_p_src;
27802 struct __pyx_memoryviewslice_obj *__pyx_v_memviewsliceobj = 0;
27803 __Pyx_memviewslice *__pyx_v_p_dst;
27804 int *__pyx_v_p_suboffset_dim;
27805 Py_ssize_t __pyx_v_start;
27806 Py_ssize_t __pyx_v_stop;
27807 Py_ssize_t __pyx_v_step;
27808 int __pyx_v_have_start;
27809 int __pyx_v_have_stop;
27810 int __pyx_v_have_step;
27811 PyObject *__pyx_v_index = NULL;
27812 struct __pyx_memoryview_obj *__pyx_r = NULL;
27813 __Pyx_RefNannyDeclarations
27816 PyObject *__pyx_t_3 = NULL;
27817 struct __pyx_memoryview_obj *__pyx_t_4;
27820 Py_ssize_t __pyx_t_7;
27821 PyObject *(*__pyx_t_8)(PyObject *);
27822 PyObject *__pyx_t_9 = NULL;
27823 Py_ssize_t __pyx_t_10;
27825 Py_ssize_t __pyx_t_12;
27826 __Pyx_RefNannySetupContext(
"memview_slice", 0);
27835 __pyx_v_new_ndim = 0;
27836 __pyx_v_suboffset_dim = -1;
27845 (void)(memset((&__pyx_v_dst), 0, (
sizeof(__pyx_v_dst))));
27854 #ifndef CYTHON_WITHOUT_ASSERTIONS
27855 if (unlikely(!Py_OptimizeFlag)) {
27856 if (unlikely(!((__pyx_v_memview->view.ndim > 0) != 0))) {
27857 PyErr_SetNone(PyExc_AssertionError);
27858 __PYX_ERR(0, 718, __pyx_L1_error)
27870 __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type);
27871 __pyx_t_2 = (__pyx_t_1 != 0);
27881 if (!(likely(((((PyObject *)__pyx_v_memview)) == Py_None) || likely(__Pyx_TypeTest(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type))))) __PYX_ERR(0, 721, __pyx_L1_error)
27882 __pyx_t_3 = ((PyObject *)__pyx_v_memview);
27883 __Pyx_INCREF(__pyx_t_3);
27884 __pyx_v_memviewsliceobj = ((
struct __pyx_memoryviewslice_obj *)__pyx_t_3);
27894 __pyx_v_p_src = (&__pyx_v_memviewsliceobj->from_slice);
27914 __pyx_memoryview_slice_copy(__pyx_v_memview, (&__pyx_v_src));
27923 __pyx_v_p_src = (&__pyx_v_src);
27934 __pyx_t_4 = __pyx_v_p_src->memview;
27935 __pyx_v_dst.memview = __pyx_t_4;
27944 __pyx_t_5 = __pyx_v_p_src->data;
27945 __pyx_v_dst.data = __pyx_t_5;
27954 __pyx_v_p_dst = (&__pyx_v_dst);
27963 __pyx_v_p_suboffset_dim = (&__pyx_v_suboffset_dim);
27973 if (likely(PyList_CheckExact(__pyx_v_indices)) || PyTuple_CheckExact(__pyx_v_indices)) {
27974 __pyx_t_3 = __pyx_v_indices; __Pyx_INCREF(__pyx_t_3); __pyx_t_7 = 0;
27977 __pyx_t_7 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_indices);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 742, __pyx_L1_error)
27978 __Pyx_GOTREF(__pyx_t_3);
27979 __pyx_t_8 = Py_TYPE(__pyx_t_3)->tp_iternext;
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 742, __pyx_L1_error)
27982 if (likely(!__pyx_t_8)) {
27983 if (likely(PyList_CheckExact(__pyx_t_3))) {
27984 if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_3))
break;
27985 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
27986 __pyx_t_9 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_9); __pyx_t_7++;
if (unlikely(0 < 0)) __PYX_ERR(0, 742, __pyx_L1_error)
27988 __pyx_t_9 = PySequence_ITEM(__pyx_t_3, __pyx_t_7); __pyx_t_7++;
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 742, __pyx_L1_error)
27989 __Pyx_GOTREF(__pyx_t_9);
27992 if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_3))
break;
27993 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
27994 __pyx_t_9 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_9); __pyx_t_7++;
if (unlikely(0 < 0)) __PYX_ERR(0, 742, __pyx_L1_error)
27996 __pyx_t_9 = PySequence_ITEM(__pyx_t_3, __pyx_t_7); __pyx_t_7++;
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 742, __pyx_L1_error)
27997 __Pyx_GOTREF(__pyx_t_9);
28001 __pyx_t_9 = __pyx_t_8(__pyx_t_3);
28002 if (unlikely(!__pyx_t_9)) {
28003 PyObject* exc_type = PyErr_Occurred();
28005 if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
28006 else __PYX_ERR(0, 742, __pyx_L1_error)
28010 __Pyx_GOTREF(__pyx_t_9);
28012 __Pyx_XDECREF_SET(__pyx_v_index, __pyx_t_9);
28014 __pyx_v_dim = __pyx_t_6;
28015 __pyx_t_6 = (__pyx_t_6 + 1);
28024 __pyx_t_2 = (PyIndex_Check(__pyx_v_index) != 0);
28034 __pyx_t_10 = __Pyx_PyIndex_AsSsize_t(__pyx_v_index);
if (unlikely((__pyx_t_10 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 747, __pyx_L1_error)
28043 __pyx_t_11 = __pyx_memoryview_slice_memviewslice(__pyx_v_p_dst, (__pyx_v_p_src->shape[__pyx_v_dim]), (__pyx_v_p_src->strides[__pyx_v_dim]), (__pyx_v_p_src->suboffsets[__pyx_v_dim]), __pyx_v_dim, __pyx_v_new_ndim, __pyx_v_p_suboffset_dim, __pyx_t_10, 0, 0, 0, 0, 0, 0);
if (unlikely(__pyx_t_11 == ((
int)-1))) __PYX_ERR(0, 744, __pyx_L1_error)
28062 __pyx_t_2 = (__pyx_v_index == Py_None);
28063 __pyx_t_1 = (__pyx_t_2 != 0);
28073 (__pyx_v_p_dst->shape[__pyx_v_new_ndim]) = 1;
28082 (__pyx_v_p_dst->strides[__pyx_v_new_ndim]) = 0;
28091 (__pyx_v_p_dst->suboffsets[__pyx_v_new_ndim]) = -1
L;
28100 __pyx_v_new_ndim = (__pyx_v_new_ndim + 1);
28120 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_start);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 756, __pyx_L1_error)
28121 __Pyx_GOTREF(__pyx_t_9);
28122 __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9);
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 756, __pyx_L1_error)
28124 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
28126 __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_9);
if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 756, __pyx_L1_error)
28127 __pyx_t_10 = __pyx_t_12;
28128 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
28129 goto __pyx_L7_bool_binop_done;
28132 __pyx_L7_bool_binop_done:;
28133 __pyx_v_start = __pyx_t_10;
28142 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_stop);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 757, __pyx_L1_error)
28143 __Pyx_GOTREF(__pyx_t_9);
28144 __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9);
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 757, __pyx_L1_error)
28146 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
28148 __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_9);
if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 757, __pyx_L1_error)
28149 __pyx_t_10 = __pyx_t_12;
28150 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
28151 goto __pyx_L9_bool_binop_done;
28154 __pyx_L9_bool_binop_done:;
28155 __pyx_v_stop = __pyx_t_10;
28164 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_step);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 758, __pyx_L1_error)
28165 __Pyx_GOTREF(__pyx_t_9);
28166 __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_9);
if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 758, __pyx_L1_error)
28168 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
28170 __pyx_t_12 = __Pyx_PyIndex_AsSsize_t(__pyx_t_9);
if (unlikely((__pyx_t_12 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 758, __pyx_L1_error)
28171 __pyx_t_10 = __pyx_t_12;
28172 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
28173 goto __pyx_L11_bool_binop_done;
28176 __pyx_L11_bool_binop_done:;
28177 __pyx_v_step = __pyx_t_10;
28186 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_start);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 760, __pyx_L1_error)
28187 __Pyx_GOTREF(__pyx_t_9);
28188 __pyx_t_1 = (__pyx_t_9 != Py_None);
28189 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
28190 __pyx_v_have_start = __pyx_t_1;
28199 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_stop);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 761, __pyx_L1_error)
28200 __Pyx_GOTREF(__pyx_t_9);
28201 __pyx_t_1 = (__pyx_t_9 != Py_None);
28202 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
28203 __pyx_v_have_stop = __pyx_t_1;
28212 __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_index, __pyx_n_s_step);
if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 762, __pyx_L1_error)
28213 __Pyx_GOTREF(__pyx_t_9);
28214 __pyx_t_1 = (__pyx_t_9 != Py_None);
28215 __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
28216 __pyx_v_have_step = __pyx_t_1;
28225 __pyx_t_11 = __pyx_memoryview_slice_memviewslice(__pyx_v_p_dst, (__pyx_v_p_src->shape[__pyx_v_dim]), (__pyx_v_p_src->strides[__pyx_v_dim]), (__pyx_v_p_src->suboffsets[__pyx_v_dim]), __pyx_v_dim, __pyx_v_new_ndim, __pyx_v_p_suboffset_dim, __pyx_v_start, __pyx_v_stop, __pyx_v_step, __pyx_v_have_start, __pyx_v_have_stop, __pyx_v_have_step, 1);
if (unlikely(__pyx_t_11 == ((
int)-1))) __PYX_ERR(0, 764, __pyx_L1_error)
28234 __pyx_v_new_ndim = (__pyx_v_new_ndim + 1);
28246 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
28255 __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type);
28256 __pyx_t_2 = (__pyx_t_1 != 0);
28266 __Pyx_XDECREF(((PyObject *)__pyx_r));
28275 if (unlikely(!__pyx_v_memviewsliceobj)) { __Pyx_RaiseUnboundLocalError(
"memviewsliceobj"); __PYX_ERR(0, 774, __pyx_L1_error) }
28284 if (unlikely(!__pyx_v_memviewsliceobj)) { __Pyx_RaiseUnboundLocalError(
"memviewsliceobj"); __PYX_ERR(0, 775, __pyx_L1_error) }
28293 __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_dst, __pyx_v_new_ndim, __pyx_v_memviewsliceobj->to_object_func, __pyx_v_memviewsliceobj->to_dtype_func, __pyx_v_memview->dtype_is_object);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 773, __pyx_L1_error)
28294 __Pyx_GOTREF(__pyx_t_3);
28295 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_memoryview_type))))) __PYX_ERR(0, 773, __pyx_L1_error)
28296 __pyx_r = ((
struct __pyx_memoryview_obj *)__pyx_t_3);
28317 __Pyx_XDECREF(((PyObject *)__pyx_r));
28326 __pyx_t_3 = __pyx_memoryview_fromslice(__pyx_v_dst, __pyx_v_new_ndim, NULL, NULL, __pyx_v_memview->dtype_is_object);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 778, __pyx_L1_error)
28327 __Pyx_GOTREF(__pyx_t_3);
28336 if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_memoryview_type))))) __PYX_ERR(0, 778, __pyx_L1_error)
28337 __pyx_r = ((
struct __pyx_memoryview_obj *)__pyx_t_3);
28352 __Pyx_XDECREF(__pyx_t_3);
28353 __Pyx_XDECREF(__pyx_t_9);
28354 __Pyx_AddTraceback(
"View.MemoryView.memview_slice", __pyx_clineno, __pyx_lineno, __pyx_filename);
28357 __Pyx_XDECREF((PyObject *)__pyx_v_memviewsliceobj);
28358 __Pyx_XDECREF(__pyx_v_index);
28359 __Pyx_XGIVEREF((PyObject *)__pyx_r);
28360 __Pyx_RefNannyFinishContext();
28372 static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *__pyx_v_dst, Py_ssize_t __pyx_v_shape, Py_ssize_t __pyx_v_stride, Py_ssize_t __pyx_v_suboffset,
int __pyx_v_dim,
int __pyx_v_new_ndim,
int *__pyx_v_suboffset_dim, Py_ssize_t __pyx_v_start, Py_ssize_t __pyx_v_stop, Py_ssize_t __pyx_v_step,
int __pyx_v_have_start,
int __pyx_v_have_stop,
int __pyx_v_have_step,
int __pyx_v_is_slice) {
28373 Py_ssize_t __pyx_v_new_shape;
28374 int __pyx_v_negative_step;
28387 __pyx_t_1 = ((!(__pyx_v_is_slice != 0)) != 0);
28397 __pyx_t_1 = ((__pyx_v_start < 0) != 0);
28407 __pyx_v_start = (__pyx_v_start + __pyx_v_shape);
28425 __pyx_t_1 = (0 <= __pyx_v_start);
28427 __pyx_t_1 = (__pyx_v_start < __pyx_v_shape);
28429 __pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
28439 __pyx_t_3 = __pyx_memoryview_err_dim(__pyx_builtin_IndexError, ((
char *)
"Index out of bounds (axis %d)"), __pyx_v_dim);
if (unlikely(__pyx_t_3 == ((
int)-1))) __PYX_ERR(0, 828, __pyx_L1_error)
28468 __pyx_t_1 = ((__pyx_v_have_step != 0) != 0);
28471 __pyx_t_2 = __pyx_t_1;
28472 goto __pyx_L6_bool_binop_done;
28474 __pyx_t_1 = ((__pyx_v_step < 0) != 0);
28475 __pyx_t_2 = __pyx_t_1;
28476 __pyx_L6_bool_binop_done:;
28477 __pyx_v_negative_step = __pyx_t_2;
28486 __pyx_t_1 = (__pyx_v_have_step != 0);
28489 __pyx_t_2 = __pyx_t_1;
28490 goto __pyx_L9_bool_binop_done;
28492 __pyx_t_1 = ((__pyx_v_step == 0) != 0);
28493 __pyx_t_2 = __pyx_t_1;
28494 __pyx_L9_bool_binop_done:;
28504 __pyx_t_3 = __pyx_memoryview_err_dim(__pyx_builtin_ValueError, ((
char *)
"Step may not be zero (axis %d)"), __pyx_v_dim);
if (unlikely(__pyx_t_3 == ((
int)-1))) __PYX_ERR(0, 834, __pyx_L1_error)
28522 __pyx_t_2 = (__pyx_v_have_start != 0);
28532 __pyx_t_2 = ((__pyx_v_start < 0) != 0);
28542 __pyx_v_start = (__pyx_v_start + __pyx_v_shape);
28551 __pyx_t_2 = ((__pyx_v_start < 0) != 0);
28589 __pyx_t_2 = ((__pyx_v_start >= __pyx_v_shape) != 0);
28599 __pyx_t_2 = (__pyx_v_negative_step != 0);
28609 __pyx_v_start = (__pyx_v_shape - 1);
28629 __pyx_v_start = __pyx_v_shape;
28661 __pyx_t_2 = (__pyx_v_negative_step != 0);
28671 __pyx_v_start = (__pyx_v_shape - 1);
28704 __pyx_t_2 = (__pyx_v_have_stop != 0);
28714 __pyx_t_2 = ((__pyx_v_stop < 0) != 0);
28724 __pyx_v_stop = (__pyx_v_stop + __pyx_v_shape);
28733 __pyx_t_2 = ((__pyx_v_stop < 0) != 0);
28771 __pyx_t_2 = ((__pyx_v_stop > __pyx_v_shape) != 0);
28781 __pyx_v_stop = __pyx_v_shape;
28811 __pyx_t_2 = (__pyx_v_negative_step != 0);
28821 __pyx_v_stop = -1
L;
28841 __pyx_v_stop = __pyx_v_shape;
28854 __pyx_t_2 = ((!(__pyx_v_have_step != 0)) != 0);
28882 __pyx_v_new_shape = ((__pyx_v_stop - __pyx_v_start) / __pyx_v_step);
28891 __pyx_t_2 = (((__pyx_v_stop - __pyx_v_start) - (__pyx_v_step * __pyx_v_new_shape)) != 0);
28901 __pyx_v_new_shape = (__pyx_v_new_shape + 1);
28919 __pyx_t_2 = ((__pyx_v_new_shape < 0) != 0);
28929 __pyx_v_new_shape = 0;
28947 (__pyx_v_dst->strides[__pyx_v_new_ndim]) = (__pyx_v_stride * __pyx_v_step);
28956 (__pyx_v_dst->shape[__pyx_v_new_ndim]) = __pyx_v_new_shape;
28965 (__pyx_v_dst->suboffsets[__pyx_v_new_ndim]) = __pyx_v_suboffset;
28976 __pyx_t_2 = (((__pyx_v_suboffset_dim[0]) < 0) != 0);
28986 __pyx_v_dst->data = (__pyx_v_dst->data + (__pyx_v_start * __pyx_v_stride));
29006 __pyx_t_3 = (__pyx_v_suboffset_dim[0]);
29007 (__pyx_v_dst->suboffsets[__pyx_t_3]) = ((__pyx_v_dst->suboffsets[__pyx_t_3]) + (__pyx_v_start * __pyx_v_stride));
29018 __pyx_t_2 = ((__pyx_v_suboffset >= 0) != 0);
29028 __pyx_t_2 = ((!(__pyx_v_is_slice != 0)) != 0);
29038 __pyx_t_2 = ((__pyx_v_new_ndim == 0) != 0);
29048 __pyx_v_dst->data = ((((
char **)__pyx_v_dst->data)[0]) + __pyx_v_suboffset);
29076 __pyx_t_3 = __pyx_memoryview_err_dim(__pyx_builtin_IndexError, ((
char *)
"All dimensions preceding dimension %d must be indexed and not sliced"), __pyx_v_dim);
if (unlikely(__pyx_t_3 == ((
int)-1))) __PYX_ERR(0, 895, __pyx_L1_error)
29098 (__pyx_v_suboffset_dim[0]) = __pyx_v_new_ndim;
29133 PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
29135 __Pyx_AddTraceback(
"View.MemoryView.slice_memviewslice", __pyx_clineno, __pyx_lineno, __pyx_filename);
29137 __Pyx_PyGILState_Release(__pyx_gilstate_save);
29153 static char *__pyx_pybuffer_index(Py_buffer *__pyx_v_view,
char *__pyx_v_bufp, Py_ssize_t __pyx_v_index, Py_ssize_t __pyx_v_dim) {
29154 Py_ssize_t __pyx_v_shape;
29155 Py_ssize_t __pyx_v_stride;
29156 Py_ssize_t __pyx_v_suboffset;
29157 Py_ssize_t __pyx_v_itemsize;
29158 char *__pyx_v_resultp;
29160 __Pyx_RefNannyDeclarations
29161 Py_ssize_t __pyx_t_1;
29163 PyObject *__pyx_t_3 = NULL;
29164 PyObject *__pyx_t_4 = NULL;
29165 __Pyx_RefNannySetupContext(
"pybuffer_index", 0);
29174 __pyx_v_suboffset = -1
L;
29183 __pyx_t_1 = __pyx_v_view->itemsize;
29184 __pyx_v_itemsize = __pyx_t_1;
29193 __pyx_t_2 = ((__pyx_v_view->ndim == 0) != 0);
29203 if (unlikely(__pyx_v_itemsize == 0)) {
29204 PyErr_SetString(PyExc_ZeroDivisionError,
"integer division or modulo by zero");
29205 __PYX_ERR(0, 913, __pyx_L1_error)
29207 else if (
sizeof(Py_ssize_t) ==
sizeof(
long) && (!(((Py_ssize_t)-1) > 0)) && unlikely(__pyx_v_itemsize == (Py_ssize_t)-1) && unlikely(UNARY_NEG_WOULD_OVERFLOW(__pyx_v_view->len))) {
29208 PyErr_SetString(PyExc_OverflowError,
"value too large to perform division");
29209 __PYX_ERR(0, 913, __pyx_L1_error)
29211 __pyx_v_shape = __Pyx_div_Py_ssize_t(__pyx_v_view->len, __pyx_v_itemsize);
29220 __pyx_v_stride = __pyx_v_itemsize;
29240 __pyx_v_shape = (__pyx_v_view->shape[__pyx_v_dim]);
29249 __pyx_v_stride = (__pyx_v_view->strides[__pyx_v_dim]);
29258 __pyx_t_2 = ((__pyx_v_view->suboffsets != NULL) != 0);
29268 __pyx_v_suboffset = (__pyx_v_view->suboffsets[__pyx_v_dim]);
29288 __pyx_t_2 = ((__pyx_v_index < 0) != 0);
29298 __pyx_v_index = (__pyx_v_index + (__pyx_v_view->shape[__pyx_v_dim]));
29307 __pyx_t_2 = ((__pyx_v_index < 0) != 0);
29308 if (unlikely(__pyx_t_2)) {
29317 __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_dim);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 924, __pyx_L1_error)
29318 __Pyx_GOTREF(__pyx_t_3);
29319 __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Out_of_bounds_on_buffer_access_a, __pyx_t_3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 924, __pyx_L1_error)
29320 __Pyx_GOTREF(__pyx_t_4);
29321 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
29322 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_IndexError, __pyx_t_4);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 924, __pyx_L1_error)
29323 __Pyx_GOTREF(__pyx_t_3);
29324 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
29325 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
29326 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
29327 __PYX_ERR(0, 924, __pyx_L1_error)
29354 __pyx_t_2 = ((__pyx_v_index >= __pyx_v_shape) != 0);
29355 if (unlikely(__pyx_t_2)) {
29364 __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_dim);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 927, __pyx_L1_error)
29365 __Pyx_GOTREF(__pyx_t_3);
29366 __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Out_of_bounds_on_buffer_access_a, __pyx_t_3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 927, __pyx_L1_error)
29367 __Pyx_GOTREF(__pyx_t_4);
29368 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
29369 __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_IndexError, __pyx_t_4);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 927, __pyx_L1_error)
29370 __Pyx_GOTREF(__pyx_t_3);
29371 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
29372 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
29373 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
29374 __PYX_ERR(0, 927, __pyx_L1_error)
29392 __pyx_v_resultp = (__pyx_v_bufp + (__pyx_v_index * __pyx_v_stride));
29401 __pyx_t_2 = ((__pyx_v_suboffset >= 0) != 0);
29411 __pyx_v_resultp = ((((
char **)__pyx_v_resultp)[0]) + __pyx_v_suboffset);
29429 __pyx_r = __pyx_v_resultp;
29442 __Pyx_XDECREF(__pyx_t_3);
29443 __Pyx_XDECREF(__pyx_t_4);
29444 __Pyx_AddTraceback(
"View.MemoryView.pybuffer_index", __pyx_clineno, __pyx_lineno, __pyx_filename);
29447 __Pyx_RefNannyFinishContext();
29459 static int __pyx_memslice_transpose(__Pyx_memviewslice *__pyx_v_memslice) {
29461 Py_ssize_t *__pyx_v_shape;
29462 Py_ssize_t *__pyx_v_strides;
29467 Py_ssize_t *__pyx_t_2;
29470 Py_ssize_t __pyx_t_5;
29471 Py_ssize_t __pyx_t_6;
29483 __pyx_t_1 = __pyx_v_memslice->memview->view.ndim;
29484 __pyx_v_ndim = __pyx_t_1;
29493 __pyx_t_2 = __pyx_v_memslice->shape;
29494 __pyx_v_shape = __pyx_t_2;
29503 __pyx_t_2 = __pyx_v_memslice->strides;
29504 __pyx_v_strides = __pyx_t_2;
29513 __pyx_t_3 = __Pyx_div_long(__pyx_v_ndim, 2);
29514 __pyx_t_4 = __pyx_t_3;
29515 for (__pyx_t_1 = 0; __pyx_t_1 < __pyx_t_4; __pyx_t_1+=1) {
29516 __pyx_v_i = __pyx_t_1;
29525 __pyx_v_j = ((__pyx_v_ndim - 1) - __pyx_v_i);
29534 __pyx_t_5 = (__pyx_v_strides[__pyx_v_j]);
29535 __pyx_t_6 = (__pyx_v_strides[__pyx_v_i]);
29536 (__pyx_v_strides[__pyx_v_i]) = __pyx_t_5;
29537 (__pyx_v_strides[__pyx_v_j]) = __pyx_t_6;
29546 __pyx_t_6 = (__pyx_v_shape[__pyx_v_j]);
29547 __pyx_t_5 = (__pyx_v_shape[__pyx_v_i]);
29548 (__pyx_v_shape[__pyx_v_i]) = __pyx_t_6;
29549 (__pyx_v_shape[__pyx_v_j]) = __pyx_t_5;
29558 __pyx_t_8 = (((__pyx_v_memslice->suboffsets[__pyx_v_i]) >= 0) != 0);
29561 __pyx_t_7 = __pyx_t_8;
29562 goto __pyx_L6_bool_binop_done;
29564 __pyx_t_8 = (((__pyx_v_memslice->suboffsets[__pyx_v_j]) >= 0) != 0);
29565 __pyx_t_7 = __pyx_t_8;
29566 __pyx_L6_bool_binop_done:;
29576 __pyx_t_9 = __pyx_memoryview_err(__pyx_builtin_ValueError, ((
char *)
"Cannot transpose memoryview with indirect dimensions"));
if (unlikely(__pyx_t_9 == ((
int)-1))) __PYX_ERR(0, 953, __pyx_L1_error)
29610 PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
29612 __Pyx_AddTraceback(
"View.MemoryView.transpose_memslice", __pyx_clineno, __pyx_lineno, __pyx_filename);
29614 __Pyx_PyGILState_Release(__pyx_gilstate_save);
29631 static void __pyx_memoryviewslice___dealloc__(PyObject *__pyx_v_self);
29632 static void __pyx_memoryviewslice___dealloc__(PyObject *__pyx_v_self) {
29633 __Pyx_RefNannyDeclarations
29634 __Pyx_RefNannySetupContext(
"__dealloc__ (wrapper)", 0);
29635 __pyx_memoryviewslice___pyx_pf_15View_dot_MemoryView_16_memoryviewslice___dealloc__(((
struct __pyx_memoryviewslice_obj *)__pyx_v_self));
29638 __Pyx_RefNannyFinishContext();
29641 static void __pyx_memoryviewslice___pyx_pf_15View_dot_MemoryView_16_memoryviewslice___dealloc__(
struct __pyx_memoryviewslice_obj *__pyx_v_self) {
29642 __Pyx_RefNannyDeclarations
29643 __Pyx_RefNannySetupContext(
"__dealloc__", 0);
29652 __PYX_XDEC_MEMVIEW((&__pyx_v_self->from_slice), 1);
29663 __Pyx_RefNannyFinishContext();
29674 static PyObject *__pyx_memoryviewslice_convert_item_to_object(
struct __pyx_memoryviewslice_obj *__pyx_v_self,
char *__pyx_v_itemp) {
29675 PyObject *__pyx_r = NULL;
29676 __Pyx_RefNannyDeclarations
29678 PyObject *__pyx_t_2 = NULL;
29679 __Pyx_RefNannySetupContext(
"convert_item_to_object", 0);
29688 __pyx_t_1 = ((__pyx_v_self->to_object_func != NULL) != 0);
29698 __Pyx_XDECREF(__pyx_r);
29699 __pyx_t_2 = __pyx_v_self->to_object_func(__pyx_v_itemp);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 977, __pyx_L1_error)
29700 __Pyx_GOTREF(__pyx_t_2);
29701 __pyx_r = __pyx_t_2;
29722 __Pyx_XDECREF(__pyx_r);
29723 __pyx_t_2 = __pyx_memoryview_convert_item_to_object(((
struct __pyx_memoryview_obj *)__pyx_v_self), __pyx_v_itemp);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 979, __pyx_L1_error)
29724 __Pyx_GOTREF(__pyx_t_2);
29725 __pyx_r = __pyx_t_2;
29740 __Pyx_XDECREF(__pyx_t_2);
29741 __Pyx_AddTraceback(
"View.MemoryView._memoryviewslice.convert_item_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
29744 __Pyx_XGIVEREF(__pyx_r);
29745 __Pyx_RefNannyFinishContext();
29757 static PyObject *__pyx_memoryviewslice_assign_item_from_object(
struct __pyx_memoryviewslice_obj *__pyx_v_self,
char *__pyx_v_itemp, PyObject *__pyx_v_value) {
29758 PyObject *__pyx_r = NULL;
29759 __Pyx_RefNannyDeclarations
29762 PyObject *__pyx_t_3 = NULL;
29763 __Pyx_RefNannySetupContext(
"assign_item_from_object", 0);
29772 __pyx_t_1 = ((__pyx_v_self->to_dtype_func != NULL) != 0);
29782 __pyx_t_2 = __pyx_v_self->to_dtype_func(__pyx_v_itemp, __pyx_v_value);
if (unlikely(__pyx_t_2 == ((
int)0))) __PYX_ERR(0, 983, __pyx_L1_error)
29802 __pyx_t_3 = __pyx_memoryview_assign_item_from_object(((
struct __pyx_memoryview_obj *)__pyx_v_self), __pyx_v_itemp, __pyx_v_value);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 985, __pyx_L1_error)
29803 __Pyx_GOTREF(__pyx_t_3);
29804 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
29817 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
29820 __Pyx_XDECREF(__pyx_t_3);
29821 __Pyx_AddTraceback(
"View.MemoryView._memoryviewslice.assign_item_from_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
29824 __Pyx_XGIVEREF(__pyx_r);
29825 __Pyx_RefNannyFinishContext();
29838 static PyObject *__pyx_pw_15View_dot_MemoryView_16_memoryviewslice_4base_1__get__(PyObject *__pyx_v_self);
29839 static PyObject *__pyx_pw_15View_dot_MemoryView_16_memoryviewslice_4base_1__get__(PyObject *__pyx_v_self) {
29840 PyObject *__pyx_r = 0;
29841 __Pyx_RefNannyDeclarations
29842 __Pyx_RefNannySetupContext(
"__get__ (wrapper)", 0);
29843 __pyx_r = __pyx_pf_15View_dot_MemoryView_16_memoryviewslice_4base___get__(((
struct __pyx_memoryviewslice_obj *)__pyx_v_self));
29846 __Pyx_RefNannyFinishContext();
29850 static PyObject *__pyx_pf_15View_dot_MemoryView_16_memoryviewslice_4base___get__(
struct __pyx_memoryviewslice_obj *__pyx_v_self) {
29851 PyObject *__pyx_r = NULL;
29852 __Pyx_RefNannyDeclarations
29853 __Pyx_RefNannySetupContext(
"__get__", 0);
29862 __Pyx_XDECREF(__pyx_r);
29863 __Pyx_INCREF(__pyx_v_self->from_object);
29864 __pyx_r = __pyx_v_self->from_object;
29877 __Pyx_XGIVEREF(__pyx_r);
29878 __Pyx_RefNannyFinishContext();
29889 static PyObject *__pyx_pw___pyx_memoryviewslice_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused);
29890 static PyObject *__pyx_pw___pyx_memoryviewslice_1__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
29891 PyObject *__pyx_r = 0;
29892 __Pyx_RefNannyDeclarations
29893 __Pyx_RefNannySetupContext(
"__reduce_cython__ (wrapper)", 0);
29894 __pyx_r = __pyx_pf___pyx_memoryviewslice___reduce_cython__(((
struct __pyx_memoryviewslice_obj *)__pyx_v_self));
29897 __Pyx_RefNannyFinishContext();
29901 static PyObject *__pyx_pf___pyx_memoryviewslice___reduce_cython__(CYTHON_UNUSED
struct __pyx_memoryviewslice_obj *__pyx_v_self) {
29902 PyObject *__pyx_r = NULL;
29903 __Pyx_RefNannyDeclarations
29904 PyObject *__pyx_t_1 = NULL;
29905 __Pyx_RefNannySetupContext(
"__reduce_cython__", 0);
29913 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__29, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error)
29914 __Pyx_GOTREF(__pyx_t_1);
29915 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
29916 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
29917 __PYX_ERR(0, 2, __pyx_L1_error)
29927 __Pyx_XDECREF(__pyx_t_1);
29928 __Pyx_AddTraceback(
"View.MemoryView._memoryviewslice.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29930 __Pyx_XGIVEREF(__pyx_r);
29931 __Pyx_RefNannyFinishContext();
29943 static PyObject *__pyx_pw___pyx_memoryviewslice_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state);
29944 static PyObject *__pyx_pw___pyx_memoryviewslice_3__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
29945 PyObject *__pyx_r = 0;
29946 __Pyx_RefNannyDeclarations
29947 __Pyx_RefNannySetupContext(
"__setstate_cython__ (wrapper)", 0);
29948 __pyx_r = __pyx_pf___pyx_memoryviewslice_2__setstate_cython__(((
struct __pyx_memoryviewslice_obj *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
29951 __Pyx_RefNannyFinishContext();
29955 static PyObject *__pyx_pf___pyx_memoryviewslice_2__setstate_cython__(CYTHON_UNUSED
struct __pyx_memoryviewslice_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
29956 PyObject *__pyx_r = NULL;
29957 __Pyx_RefNannyDeclarations
29958 PyObject *__pyx_t_1 = NULL;
29959 __Pyx_RefNannySetupContext(
"__setstate_cython__", 0);
29966 __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__30, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 4, __pyx_L1_error)
29967 __Pyx_GOTREF(__pyx_t_1);
29968 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
29969 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
29970 __PYX_ERR(0, 4, __pyx_L1_error)
29981 __Pyx_XDECREF(__pyx_t_1);
29982 __Pyx_AddTraceback(
"View.MemoryView._memoryviewslice.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
29984 __Pyx_XGIVEREF(__pyx_r);
29985 __Pyx_RefNannyFinishContext();
29997 static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice __pyx_v_memviewslice,
int __pyx_v_ndim, PyObject *(*__pyx_v_to_object_func)(
char *),
int (*__pyx_v_to_dtype_func)(
char *, PyObject *),
int __pyx_v_dtype_is_object) {
29998 struct __pyx_memoryviewslice_obj *__pyx_v_result = 0;
29999 Py_ssize_t __pyx_v_suboffset;
30000 PyObject *__pyx_v_length = NULL;
30001 PyObject *__pyx_r = NULL;
30002 __Pyx_RefNannyDeclarations
30004 PyObject *__pyx_t_2 = NULL;
30005 PyObject *__pyx_t_3 = NULL;
30006 __Pyx_TypeInfo *__pyx_t_4;
30007 Py_buffer __pyx_t_5;
30008 Py_ssize_t *__pyx_t_6;
30009 Py_ssize_t *__pyx_t_7;
30010 Py_ssize_t *__pyx_t_8;
30011 Py_ssize_t __pyx_t_9;
30012 __Pyx_RefNannySetupContext(
"memoryview_fromslice", 0);
30021 __pyx_t_1 = ((((PyObject *)__pyx_v_memviewslice.memview) == Py_None) != 0);
30031 __Pyx_XDECREF(__pyx_r);
30032 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
30051 __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_dtype_is_object);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1009, __pyx_L1_error)
30052 __Pyx_GOTREF(__pyx_t_2);
30053 __pyx_t_3 = PyTuple_New(3);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1009, __pyx_L1_error)
30054 __Pyx_GOTREF(__pyx_t_3);
30055 __Pyx_INCREF(Py_None);
30056 __Pyx_GIVEREF(Py_None);
30057 PyTuple_SET_ITEM(__pyx_t_3, 0, Py_None);
30058 __Pyx_INCREF(__pyx_int_0);
30059 __Pyx_GIVEREF(__pyx_int_0);
30060 PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_int_0);
30061 __Pyx_GIVEREF(__pyx_t_2);
30062 PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2);
30064 __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_memoryviewslice_type), __pyx_t_3, NULL);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1009, __pyx_L1_error)
30065 __Pyx_GOTREF(__pyx_t_2);
30066 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
30067 __pyx_v_result = ((
struct __pyx_memoryviewslice_obj *)__pyx_t_2);
30077 __pyx_v_result->from_slice = __pyx_v_memviewslice;
30086 __PYX_INC_MEMVIEW((&__pyx_v_memviewslice), 1);
30095 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_memviewslice.memview), __pyx_n_s_base);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1014, __pyx_L1_error)
30096 __Pyx_GOTREF(__pyx_t_2);
30097 __Pyx_GIVEREF(__pyx_t_2);
30098 __Pyx_GOTREF(__pyx_v_result->from_object);
30099 __Pyx_DECREF(__pyx_v_result->from_object);
30100 __pyx_v_result->from_object = __pyx_t_2;
30110 __pyx_t_4 = __pyx_v_memviewslice.memview->typeinfo;
30111 __pyx_v_result->__pyx_base.typeinfo = __pyx_t_4;
30120 __pyx_t_5 = __pyx_v_memviewslice.memview->view;
30121 __pyx_v_result->__pyx_base.view = __pyx_t_5;
30130 __pyx_v_result->__pyx_base.view.buf = ((
void *)__pyx_v_memviewslice.data);
30139 __pyx_v_result->__pyx_base.view.ndim = __pyx_v_ndim;
30148 ((Py_buffer *)(&__pyx_v_result->__pyx_base.view))->obj = Py_None;
30157 Py_INCREF(Py_None);
30166 __pyx_t_1 = ((((
struct __pyx_memoryview_obj *)__pyx_v_memviewslice.memview)->flags & PyBUF_WRITABLE) != 0);
30176 __pyx_v_result->__pyx_base.flags = PyBUF_RECORDS;
30196 __pyx_v_result->__pyx_base.flags = PyBUF_RECORDS_RO;
30207 __pyx_v_result->__pyx_base.view.shape = ((Py_ssize_t *)__pyx_v_result->from_slice.shape);
30216 __pyx_v_result->__pyx_base.view.strides = ((Py_ssize_t *)__pyx_v_result->from_slice.strides);
30225 __pyx_v_result->__pyx_base.view.suboffsets = NULL;
30234 __pyx_t_7 = (__pyx_v_result->from_slice.suboffsets + __pyx_v_ndim);
30235 for (__pyx_t_8 = __pyx_v_result->from_slice.suboffsets; __pyx_t_8 < __pyx_t_7; __pyx_t_8++) {
30236 __pyx_t_6 = __pyx_t_8;
30237 __pyx_v_suboffset = (__pyx_t_6[0]);
30246 __pyx_t_1 = ((__pyx_v_suboffset >= 0) != 0);
30256 __pyx_v_result->__pyx_base.view.suboffsets = ((Py_ssize_t *)__pyx_v_result->from_slice.suboffsets);
30265 goto __pyx_L6_break;
30285 __pyx_t_9 = __pyx_v_result->__pyx_base.view.itemsize;
30286 __pyx_v_result->__pyx_base.view.len = __pyx_t_9;
30295 __pyx_t_7 = (__pyx_v_result->__pyx_base.view.shape + __pyx_v_ndim);
30296 for (__pyx_t_8 = __pyx_v_result->__pyx_base.view.shape; __pyx_t_8 < __pyx_t_7; __pyx_t_8++) {
30297 __pyx_t_6 = __pyx_t_8;
30298 __pyx_t_2 = PyInt_FromSsize_t((__pyx_t_6[0]));
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1039, __pyx_L1_error)
30299 __Pyx_GOTREF(__pyx_t_2);
30300 __Pyx_XDECREF_SET(__pyx_v_length, __pyx_t_2);
30310 __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_result->__pyx_base.view.len);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1040, __pyx_L1_error)
30311 __Pyx_GOTREF(__pyx_t_2);
30312 __pyx_t_3 = PyNumber_InPlaceMultiply(__pyx_t_2, __pyx_v_length);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1040, __pyx_L1_error)
30313 __Pyx_GOTREF(__pyx_t_3);
30314 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
30315 __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3);
if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1040, __pyx_L1_error)
30316 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
30317 __pyx_v_result->__pyx_base.view.len = __pyx_t_9;
30327 __pyx_v_result->to_object_func = __pyx_v_to_object_func;
30336 __pyx_v_result->to_dtype_func = __pyx_v_to_dtype_func;
30345 __Pyx_XDECREF(__pyx_r);
30346 __Pyx_INCREF(((PyObject *)__pyx_v_result));
30347 __pyx_r = ((PyObject *)__pyx_v_result);
30360 __Pyx_XDECREF(__pyx_t_2);
30361 __Pyx_XDECREF(__pyx_t_3);
30362 __Pyx_AddTraceback(
"View.MemoryView.memoryview_fromslice", __pyx_clineno, __pyx_lineno, __pyx_filename);
30365 __Pyx_XDECREF((PyObject *)__pyx_v_result);
30366 __Pyx_XDECREF(__pyx_v_length);
30367 __Pyx_XGIVEREF(__pyx_r);
30368 __Pyx_RefNannyFinishContext();
30380 static __Pyx_memviewslice *__pyx_memoryview_get_slice_from_memoryview(
struct __pyx_memoryview_obj *__pyx_v_memview, __Pyx_memviewslice *__pyx_v_mslice) {
30381 struct __pyx_memoryviewslice_obj *__pyx_v_obj = 0;
30382 __Pyx_memviewslice *__pyx_r;
30383 __Pyx_RefNannyDeclarations
30386 PyObject *__pyx_t_3 = NULL;
30387 __Pyx_RefNannySetupContext(
"get_slice_from_memview", 0);
30396 __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type);
30397 __pyx_t_2 = (__pyx_t_1 != 0);
30407 if (!(likely(((((PyObject *)__pyx_v_memview)) == Py_None) || likely(__Pyx_TypeTest(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type))))) __PYX_ERR(0, 1052, __pyx_L1_error)
30408 __pyx_t_3 = ((PyObject *)__pyx_v_memview);
30409 __Pyx_INCREF(__pyx_t_3);
30410 __pyx_v_obj = ((
struct __pyx_memoryviewslice_obj *)__pyx_t_3);
30420 __pyx_r = (&__pyx_v_obj->from_slice);
30440 __pyx_memoryview_slice_copy(__pyx_v_memview, __pyx_v_mslice);
30449 __pyx_r = __pyx_v_mslice;
30463 __Pyx_XDECREF(__pyx_t_3);
30464 __Pyx_WriteUnraisable(
"View.MemoryView.get_slice_from_memview", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
30467 __Pyx_XDECREF((PyObject *)__pyx_v_obj);
30468 __Pyx_RefNannyFinishContext();
30480 static void __pyx_memoryview_slice_copy(
struct __pyx_memoryview_obj *__pyx_v_memview, __Pyx_memviewslice *__pyx_v_dst) {
30482 Py_ssize_t *__pyx_v_shape;
30483 Py_ssize_t *__pyx_v_strides;
30484 Py_ssize_t *__pyx_v_suboffsets;
30485 __Pyx_RefNannyDeclarations
30486 Py_ssize_t *__pyx_t_1;
30490 Py_ssize_t __pyx_t_5;
30491 __Pyx_RefNannySetupContext(
"slice_copy", 0);
30500 __pyx_t_1 = __pyx_v_memview->view.shape;
30501 __pyx_v_shape = __pyx_t_1;
30510 __pyx_t_1 = __pyx_v_memview->view.strides;
30511 __pyx_v_strides = __pyx_t_1;
30520 __pyx_t_1 = __pyx_v_memview->view.suboffsets;
30521 __pyx_v_suboffsets = __pyx_t_1;
30530 __pyx_v_dst->memview = ((
struct __pyx_memoryview_obj *)__pyx_v_memview);
30539 __pyx_v_dst->data = ((
char *)__pyx_v_memview->view.buf);
30548 __pyx_t_2 = __pyx_v_memview->view.ndim;
30549 __pyx_t_3 = __pyx_t_2;
30550 for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
30551 __pyx_v_dim = __pyx_t_4;
30560 (__pyx_v_dst->shape[__pyx_v_dim]) = (__pyx_v_shape[__pyx_v_dim]);
30569 (__pyx_v_dst->strides[__pyx_v_dim]) = (__pyx_v_strides[__pyx_v_dim]);
30578 if ((__pyx_v_suboffsets != 0)) {
30579 __pyx_t_5 = (__pyx_v_suboffsets[__pyx_v_dim]);
30583 (__pyx_v_dst->suboffsets[__pyx_v_dim]) = __pyx_t_5;
30595 __Pyx_RefNannyFinishContext();
30606 static PyObject *__pyx_memoryview_copy_object(
struct __pyx_memoryview_obj *__pyx_v_memview) {
30607 __Pyx_memviewslice __pyx_v_memviewslice;
30608 PyObject *__pyx_r = NULL;
30609 __Pyx_RefNannyDeclarations
30610 PyObject *__pyx_t_1 = NULL;
30611 __Pyx_RefNannySetupContext(
"memoryview_copy", 0);
30620 __pyx_memoryview_slice_copy(__pyx_v_memview, (&__pyx_v_memviewslice));
30629 __Pyx_XDECREF(__pyx_r);
30630 __pyx_t_1 = __pyx_memoryview_copy_object_from_slice(__pyx_v_memview, (&__pyx_v_memviewslice));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1080, __pyx_L1_error)
30631 __Pyx_GOTREF(__pyx_t_1);
30632 __pyx_r = __pyx_t_1;
30646 __Pyx_XDECREF(__pyx_t_1);
30647 __Pyx_AddTraceback(
"View.MemoryView.memoryview_copy", __pyx_clineno, __pyx_lineno, __pyx_filename);
30650 __Pyx_XGIVEREF(__pyx_r);
30651 __Pyx_RefNannyFinishContext();
30663 static PyObject *__pyx_memoryview_copy_object_from_slice(
struct __pyx_memoryview_obj *__pyx_v_memview, __Pyx_memviewslice *__pyx_v_memviewslice) {
30664 PyObject *(*__pyx_v_to_object_func)(
char *);
30665 int (*__pyx_v_to_dtype_func)(
char *, PyObject *);
30666 PyObject *__pyx_r = NULL;
30667 __Pyx_RefNannyDeclarations
30670 PyObject *(*__pyx_t_3)(
char *);
30671 int (*__pyx_t_4)(
char *, PyObject *);
30672 PyObject *__pyx_t_5 = NULL;
30673 __Pyx_RefNannySetupContext(
"memoryview_copy_from_slice", 0);
30682 __pyx_t_1 = __Pyx_TypeCheck(((PyObject *)__pyx_v_memview), __pyx_memoryviewslice_type);
30683 __pyx_t_2 = (__pyx_t_1 != 0);
30693 __pyx_t_3 = ((
struct __pyx_memoryviewslice_obj *)__pyx_v_memview)->to_object_func;
30694 __pyx_v_to_object_func = __pyx_t_3;
30703 __pyx_t_4 = ((
struct __pyx_memoryviewslice_obj *)__pyx_v_memview)->to_dtype_func;
30704 __pyx_v_to_dtype_func = __pyx_t_4;
30724 __pyx_v_to_object_func = NULL;
30733 __pyx_v_to_dtype_func = NULL;
30744 __Pyx_XDECREF(__pyx_r);
30753 __pyx_t_5 = __pyx_memoryview_fromslice((__pyx_v_memviewslice[0]), __pyx_v_memview->view.ndim, __pyx_v_to_object_func, __pyx_v_to_dtype_func, __pyx_v_memview->dtype_is_object);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1097, __pyx_L1_error)
30754 __Pyx_GOTREF(__pyx_t_5);
30755 __pyx_r = __pyx_t_5;
30769 __Pyx_XDECREF(__pyx_t_5);
30770 __Pyx_AddTraceback(
"View.MemoryView.memoryview_copy_from_slice", __pyx_clineno, __pyx_lineno, __pyx_filename);
30773 __Pyx_XGIVEREF(__pyx_r);
30774 __Pyx_RefNannyFinishContext();
30786 static Py_ssize_t abs_py_ssize_t(Py_ssize_t __pyx_v_arg) {
30787 Py_ssize_t __pyx_r;
30797 __pyx_t_1 = ((__pyx_v_arg < 0) != 0);
30807 __pyx_r = (-__pyx_v_arg);
30827 __pyx_r = __pyx_v_arg;
30852 static char __pyx_get_best_slice_order(__Pyx_memviewslice *__pyx_v_mslice,
int __pyx_v_ndim) {
30854 Py_ssize_t __pyx_v_c_stride;
30855 Py_ssize_t __pyx_v_f_stride;
30869 __pyx_v_c_stride = 0;
30878 __pyx_v_f_stride = 0;
30887 for (__pyx_t_1 = (__pyx_v_ndim - 1); __pyx_t_1 > -1; __pyx_t_1-=1) {
30888 __pyx_v_i = __pyx_t_1;
30897 __pyx_t_2 = (((__pyx_v_mslice->shape[__pyx_v_i]) > 1) != 0);
30907 __pyx_v_c_stride = (__pyx_v_mslice->strides[__pyx_v_i]);
30916 goto __pyx_L4_break;
30936 __pyx_t_1 = __pyx_v_ndim;
30937 __pyx_t_3 = __pyx_t_1;
30938 for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
30939 __pyx_v_i = __pyx_t_4;
30948 __pyx_t_2 = (((__pyx_v_mslice->shape[__pyx_v_i]) > 1) != 0);
30958 __pyx_v_f_stride = (__pyx_v_mslice->strides[__pyx_v_i]);
30967 goto __pyx_L7_break;
30987 __pyx_t_2 = ((abs_py_ssize_t(__pyx_v_c_stride) <= abs_py_ssize_t(__pyx_v_f_stride)) != 0);
31042 static void _copy_strided_to_strided(
char *__pyx_v_src_data, Py_ssize_t *__pyx_v_src_strides,
char *__pyx_v_dst_data, Py_ssize_t *__pyx_v_dst_strides, Py_ssize_t *__pyx_v_src_shape, Py_ssize_t *__pyx_v_dst_shape,
int __pyx_v_ndim,
size_t __pyx_v_itemsize) {
31043 CYTHON_UNUSED Py_ssize_t __pyx_v_i;
31044 CYTHON_UNUSED Py_ssize_t __pyx_v_src_extent;
31045 Py_ssize_t __pyx_v_dst_extent;
31046 Py_ssize_t __pyx_v_src_stride;
31047 Py_ssize_t __pyx_v_dst_stride;
31051 Py_ssize_t __pyx_t_4;
31052 Py_ssize_t __pyx_t_5;
31053 Py_ssize_t __pyx_t_6;
31062 __pyx_v_src_extent = (__pyx_v_src_shape[0]);
31071 __pyx_v_dst_extent = (__pyx_v_dst_shape[0]);
31080 __pyx_v_src_stride = (__pyx_v_src_strides[0]);
31089 __pyx_v_dst_stride = (__pyx_v_dst_strides[0]);
31098 __pyx_t_1 = ((__pyx_v_ndim == 1) != 0);
31108 __pyx_t_2 = ((__pyx_v_src_stride > 0) != 0);
31111 __pyx_t_1 = __pyx_t_2;
31112 goto __pyx_L5_bool_binop_done;
31114 __pyx_t_2 = ((__pyx_v_dst_stride > 0) != 0);
31117 __pyx_t_1 = __pyx_t_2;
31118 goto __pyx_L5_bool_binop_done;
31128 __pyx_t_2 = (((size_t)__pyx_v_src_stride) == __pyx_v_itemsize);
31130 __pyx_t_2 = (__pyx_v_itemsize == ((size_t)__pyx_v_dst_stride));
31132 __pyx_t_3 = (__pyx_t_2 != 0);
31133 __pyx_t_1 = __pyx_t_3;
31134 __pyx_L5_bool_binop_done:;
31152 (void)(memcpy(__pyx_v_dst_data, __pyx_v_src_data, (__pyx_v_itemsize * __pyx_v_dst_extent)));
31172 __pyx_t_4 = __pyx_v_dst_extent;
31173 __pyx_t_5 = __pyx_t_4;
31174 for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
31175 __pyx_v_i = __pyx_t_6;
31184 (void)(memcpy(__pyx_v_dst_data, __pyx_v_src_data, __pyx_v_itemsize));
31193 __pyx_v_src_data = (__pyx_v_src_data + __pyx_v_src_stride);
31202 __pyx_v_dst_data = (__pyx_v_dst_data + __pyx_v_dst_stride);
31225 __pyx_t_4 = __pyx_v_dst_extent;
31226 __pyx_t_5 = __pyx_t_4;
31227 for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
31228 __pyx_v_i = __pyx_t_6;
31237 _copy_strided_to_strided(__pyx_v_src_data, (__pyx_v_src_strides + 1), __pyx_v_dst_data, (__pyx_v_dst_strides + 1), (__pyx_v_src_shape + 1), (__pyx_v_dst_shape + 1), (__pyx_v_ndim - 1), __pyx_v_itemsize);
31246 __pyx_v_src_data = (__pyx_v_src_data + __pyx_v_src_stride);
31255 __pyx_v_dst_data = (__pyx_v_dst_data + __pyx_v_dst_stride);
31279 static void copy_strided_to_strided(__Pyx_memviewslice *__pyx_v_src, __Pyx_memviewslice *__pyx_v_dst,
int __pyx_v_ndim,
size_t __pyx_v_itemsize) {
31288 _copy_strided_to_strided(__pyx_v_src->data, __pyx_v_src->strides, __pyx_v_dst->data, __pyx_v_dst->strides, __pyx_v_src->shape, __pyx_v_dst->shape, __pyx_v_ndim, __pyx_v_itemsize);
31309 static Py_ssize_t __pyx_memoryview_slice_get_size(__Pyx_memviewslice *__pyx_v_src,
int __pyx_v_ndim) {
31311 Py_ssize_t __pyx_v_size;
31312 Py_ssize_t __pyx_r;
31313 Py_ssize_t __pyx_t_1;
31325 __pyx_t_1 = __pyx_v_src->memview->view.itemsize;
31326 __pyx_v_size = __pyx_t_1;
31335 __pyx_t_2 = __pyx_v_ndim;
31336 __pyx_t_3 = __pyx_t_2;
31337 for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
31338 __pyx_v_i = __pyx_t_4;
31347 __pyx_v_size = (__pyx_v_size * (__pyx_v_src->shape[__pyx_v_i]));
31357 __pyx_r = __pyx_v_size;
31381 static Py_ssize_t __pyx_fill_contig_strides_array(Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides, Py_ssize_t __pyx_v_stride,
int __pyx_v_ndim,
char __pyx_v_order) {
31383 Py_ssize_t __pyx_r;
31396 __pyx_t_1 = ((__pyx_v_order ==
'F') != 0);
31406 __pyx_t_2 = __pyx_v_ndim;
31407 __pyx_t_3 = __pyx_t_2;
31408 for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
31409 __pyx_v_idx = __pyx_t_4;
31418 (__pyx_v_strides[__pyx_v_idx]) = __pyx_v_stride;
31427 __pyx_v_stride = (__pyx_v_stride * (__pyx_v_shape[__pyx_v_idx]));
31448 for (__pyx_t_2 = (__pyx_v_ndim - 1); __pyx_t_2 > -1; __pyx_t_2-=1) {
31449 __pyx_v_idx = __pyx_t_2;
31458 (__pyx_v_strides[__pyx_v_idx]) = __pyx_v_stride;
31467 __pyx_v_stride = (__pyx_v_stride * (__pyx_v_shape[__pyx_v_idx]));
31479 __pyx_r = __pyx_v_stride;
31503 static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *__pyx_v_src, __Pyx_memviewslice *__pyx_v_tmpslice,
char __pyx_v_order,
int __pyx_v_ndim) {
31505 void *__pyx_v_result;
31506 size_t __pyx_v_itemsize;
31507 size_t __pyx_v_size;
31509 Py_ssize_t __pyx_t_1;
31512 struct __pyx_memoryview_obj *__pyx_t_4;
31523 __pyx_t_1 = __pyx_v_src->memview->view.itemsize;
31524 __pyx_v_itemsize = __pyx_t_1;
31533 __pyx_v_size = __pyx_memoryview_slice_get_size(__pyx_v_src, __pyx_v_ndim);
31542 __pyx_v_result = malloc(__pyx_v_size);
31551 __pyx_t_2 = ((!(__pyx_v_result != 0)) != 0);
31561 __pyx_t_3 = __pyx_memoryview_err(__pyx_builtin_MemoryError, NULL);
if (unlikely(__pyx_t_3 == ((
int)-1))) __PYX_ERR(0, 1221, __pyx_L1_error)
31579 __pyx_v_tmpslice->data = ((
char *)__pyx_v_result);
31588 __pyx_t_4 = __pyx_v_src->memview;
31589 __pyx_v_tmpslice->memview = __pyx_t_4;
31598 __pyx_t_3 = __pyx_v_ndim;
31599 __pyx_t_5 = __pyx_t_3;
31600 for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
31601 __pyx_v_i = __pyx_t_6;
31610 (__pyx_v_tmpslice->shape[__pyx_v_i]) = (__pyx_v_src->shape[__pyx_v_i]);
31619 (__pyx_v_tmpslice->suboffsets[__pyx_v_i]) = -1
L;
31629 (void)(__pyx_fill_contig_strides_array((&(__pyx_v_tmpslice->shape[0])), (&(__pyx_v_tmpslice->strides[0])), __pyx_v_itemsize, __pyx_v_ndim, __pyx_v_order));
31638 __pyx_t_3 = __pyx_v_ndim;
31639 __pyx_t_5 = __pyx_t_3;
31640 for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
31641 __pyx_v_i = __pyx_t_6;
31650 __pyx_t_2 = (((__pyx_v_tmpslice->shape[__pyx_v_i]) == 1) != 0);
31660 (__pyx_v_tmpslice->strides[__pyx_v_i]) = 0;
31679 __pyx_t_2 = (__pyx_memviewslice_is_contig((__pyx_v_src[0]), __pyx_v_order, __pyx_v_ndim) != 0);
31689 (void)(memcpy(__pyx_v_result, __pyx_v_src->data, __pyx_v_size));
31709 copy_strided_to_strided(__pyx_v_src, __pyx_v_tmpslice, __pyx_v_ndim, __pyx_v_itemsize);
31720 __pyx_r = __pyx_v_result;
31735 PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
31737 __Pyx_AddTraceback(
"View.MemoryView.copy_data_to_temp", __pyx_clineno, __pyx_lineno, __pyx_filename);
31739 __Pyx_PyGILState_Release(__pyx_gilstate_save);
31755 static int __pyx_memoryview_err_extents(
int __pyx_v_i, Py_ssize_t __pyx_v_extent1, Py_ssize_t __pyx_v_extent2) {
31757 __Pyx_RefNannyDeclarations
31758 PyObject *__pyx_t_1 = NULL;
31759 PyObject *__pyx_t_2 = NULL;
31760 PyObject *__pyx_t_3 = NULL;
31761 PyObject *__pyx_t_4 = NULL;
31763 PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
31765 __Pyx_RefNannySetupContext(
"_err_extents", 0);
31774 __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_i);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1251, __pyx_L1_error)
31775 __Pyx_GOTREF(__pyx_t_1);
31776 __pyx_t_2 = PyInt_FromSsize_t(__pyx_v_extent1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1251, __pyx_L1_error)
31777 __Pyx_GOTREF(__pyx_t_2);
31778 __pyx_t_3 = PyInt_FromSsize_t(__pyx_v_extent2);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1251, __pyx_L1_error)
31779 __Pyx_GOTREF(__pyx_t_3);
31780 __pyx_t_4 = PyTuple_New(3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1251, __pyx_L1_error)
31781 __Pyx_GOTREF(__pyx_t_4);
31782 __Pyx_GIVEREF(__pyx_t_1);
31783 PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
31784 __Pyx_GIVEREF(__pyx_t_2);
31785 PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
31786 __Pyx_GIVEREF(__pyx_t_3);
31787 PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
31799 __pyx_t_3 = __Pyx_PyString_Format(__pyx_kp_s_got_differing_extents_in_dimensi, __pyx_t_4);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1250, __pyx_L1_error)
31800 __Pyx_GOTREF(__pyx_t_3);
31801 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
31802 __pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1250, __pyx_L1_error)
31803 __Pyx_GOTREF(__pyx_t_4);
31804 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
31805 __Pyx_Raise(__pyx_t_4, 0, 0, 0);
31806 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
31807 __PYX_ERR(0, 1250, __pyx_L1_error)
31819 __Pyx_XDECREF(__pyx_t_1);
31820 __Pyx_XDECREF(__pyx_t_2);
31821 __Pyx_XDECREF(__pyx_t_3);
31822 __Pyx_XDECREF(__pyx_t_4);
31823 __Pyx_AddTraceback(
"View.MemoryView._err_extents", __pyx_clineno, __pyx_lineno, __pyx_filename);
31825 __Pyx_RefNannyFinishContext();
31827 __Pyx_PyGILState_Release(__pyx_gilstate_save);
31840 static int __pyx_memoryview_err_dim(PyObject *__pyx_v_error,
char *__pyx_v_msg,
int __pyx_v_dim) {
31842 __Pyx_RefNannyDeclarations
31843 PyObject *__pyx_t_1 = NULL;
31844 PyObject *__pyx_t_2 = NULL;
31845 PyObject *__pyx_t_3 = NULL;
31846 PyObject *__pyx_t_4 = NULL;
31848 PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
31850 __Pyx_RefNannySetupContext(
"_err_dim", 0);
31851 __Pyx_INCREF(__pyx_v_error);
31860 __pyx_t_2 = __Pyx_decode_c_string(__pyx_v_msg, 0, strlen(__pyx_v_msg), NULL, NULL, PyUnicode_DecodeASCII);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1255, __pyx_L1_error)
31861 __Pyx_GOTREF(__pyx_t_2);
31862 __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_dim);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1255, __pyx_L1_error)
31863 __Pyx_GOTREF(__pyx_t_3);
31864 __pyx_t_4 = PyUnicode_Format(__pyx_t_2, __pyx_t_3);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1255, __pyx_L1_error)
31865 __Pyx_GOTREF(__pyx_t_4);
31866 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
31867 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
31868 __Pyx_INCREF(__pyx_v_error);
31869 __pyx_t_3 = __pyx_v_error; __pyx_t_2 = NULL;
31870 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
31871 __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
31872 if (likely(__pyx_t_2)) {
31873 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_3);
31874 __Pyx_INCREF(__pyx_t_2);
31875 __Pyx_INCREF(
function);
31876 __Pyx_DECREF_SET(__pyx_t_3,
function);
31879 __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4);
31880 __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
31881 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
31882 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1255, __pyx_L1_error)
31883 __Pyx_GOTREF(__pyx_t_1);
31884 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
31885 __Pyx_Raise(__pyx_t_1, 0, 0, 0);
31886 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
31887 __PYX_ERR(0, 1255, __pyx_L1_error)
31899 __Pyx_XDECREF(__pyx_t_1);
31900 __Pyx_XDECREF(__pyx_t_2);
31901 __Pyx_XDECREF(__pyx_t_3);
31902 __Pyx_XDECREF(__pyx_t_4);
31903 __Pyx_AddTraceback(
"View.MemoryView._err_dim", __pyx_clineno, __pyx_lineno, __pyx_filename);
31905 __Pyx_XDECREF(__pyx_v_error);
31906 __Pyx_RefNannyFinishContext();
31908 __Pyx_PyGILState_Release(__pyx_gilstate_save);
31921 static int __pyx_memoryview_err(PyObject *__pyx_v_error,
char *__pyx_v_msg) {
31923 __Pyx_RefNannyDeclarations
31925 PyObject *__pyx_t_2 = NULL;
31926 PyObject *__pyx_t_3 = NULL;
31927 PyObject *__pyx_t_4 = NULL;
31928 PyObject *__pyx_t_5 = NULL;
31930 PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
31932 __Pyx_RefNannySetupContext(
"_err", 0);
31933 __Pyx_INCREF(__pyx_v_error);
31942 __pyx_t_1 = ((__pyx_v_msg != NULL) != 0);
31943 if (unlikely(__pyx_t_1)) {
31952 __pyx_t_3 = __Pyx_decode_c_string(__pyx_v_msg, 0, strlen(__pyx_v_msg), NULL, NULL, PyUnicode_DecodeASCII);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1260, __pyx_L1_error)
31953 __Pyx_GOTREF(__pyx_t_3);
31954 __Pyx_INCREF(__pyx_v_error);
31955 __pyx_t_4 = __pyx_v_error; __pyx_t_5 = NULL;
31956 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
31957 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
31958 if (likely(__pyx_t_5)) {
31959 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_4);
31960 __Pyx_INCREF(__pyx_t_5);
31961 __Pyx_INCREF(
function);
31962 __Pyx_DECREF_SET(__pyx_t_4,
function);
31965 __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3);
31966 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
31967 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
31968 if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1260, __pyx_L1_error)
31969 __Pyx_GOTREF(__pyx_t_2);
31970 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
31971 __Pyx_Raise(__pyx_t_2, 0, 0, 0);
31972 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
31973 __PYX_ERR(0, 1260, __pyx_L1_error)
31992 __Pyx_Raise(__pyx_v_error, 0, 0, 0);
31993 __PYX_ERR(0, 1262, __pyx_L1_error)
32006 __Pyx_XDECREF(__pyx_t_2);
32007 __Pyx_XDECREF(__pyx_t_3);
32008 __Pyx_XDECREF(__pyx_t_4);
32009 __Pyx_XDECREF(__pyx_t_5);
32010 __Pyx_AddTraceback(
"View.MemoryView._err", __pyx_clineno, __pyx_lineno, __pyx_filename);
32012 __Pyx_XDECREF(__pyx_v_error);
32013 __Pyx_RefNannyFinishContext();
32015 __Pyx_PyGILState_Release(__pyx_gilstate_save);
32028 static int __pyx_memoryview_copy_contents(__Pyx_memviewslice __pyx_v_src, __Pyx_memviewslice __pyx_v_dst,
int __pyx_v_src_ndim,
int __pyx_v_dst_ndim,
int __pyx_v_dtype_is_object) {
32029 void *__pyx_v_tmpdata;
32030 size_t __pyx_v_itemsize;
32032 char __pyx_v_order;
32033 int __pyx_v_broadcasting;
32034 int __pyx_v_direct_copy;
32035 __Pyx_memviewslice __pyx_v_tmp;
32038 Py_ssize_t __pyx_t_1;
32054 __pyx_v_tmpdata = NULL;
32063 __pyx_t_1 = __pyx_v_src.memview->view.itemsize;
32064 __pyx_v_itemsize = __pyx_t_1;
32073 __pyx_v_order = __pyx_get_best_slice_order((&__pyx_v_src), __pyx_v_src_ndim);
32082 __pyx_v_broadcasting = 0;
32091 __pyx_v_direct_copy = 0;
32100 __pyx_t_2 = ((__pyx_v_src_ndim < __pyx_v_dst_ndim) != 0);
32110 __pyx_memoryview_broadcast_leading((&__pyx_v_src), __pyx_v_src_ndim, __pyx_v_dst_ndim);
32129 __pyx_t_2 = ((__pyx_v_dst_ndim < __pyx_v_src_ndim) != 0);
32139 __pyx_memoryview_broadcast_leading((&__pyx_v_dst), __pyx_v_dst_ndim, __pyx_v_src_ndim);
32158 __pyx_t_3 = __pyx_v_dst_ndim;
32159 __pyx_t_4 = __pyx_v_src_ndim;
32160 if (((__pyx_t_3 > __pyx_t_4) != 0)) {
32161 __pyx_t_5 = __pyx_t_3;
32163 __pyx_t_5 = __pyx_t_4;
32165 __pyx_v_ndim = __pyx_t_5;
32174 __pyx_t_5 = __pyx_v_ndim;
32175 __pyx_t_3 = __pyx_t_5;
32176 for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
32177 __pyx_v_i = __pyx_t_4;
32186 __pyx_t_2 = (((__pyx_v_src.shape[__pyx_v_i]) != (__pyx_v_dst.shape[__pyx_v_i])) != 0);
32196 __pyx_t_2 = (((__pyx_v_src.shape[__pyx_v_i]) == 1) != 0);
32206 __pyx_v_broadcasting = 1;
32215 (__pyx_v_src.strides[__pyx_v_i]) = 0;
32235 __pyx_t_6 = __pyx_memoryview_err_extents(__pyx_v_i, (__pyx_v_dst.shape[__pyx_v_i]), (__pyx_v_src.shape[__pyx_v_i]));
if (unlikely(__pyx_t_6 == ((
int)-1))) __PYX_ERR(0, 1294, __pyx_L1_error)
32255 __pyx_t_2 = (((__pyx_v_src.suboffsets[__pyx_v_i]) >= 0) != 0);
32265 __pyx_t_6 = __pyx_memoryview_err_dim(__pyx_builtin_ValueError, ((
char *)
"Dimension %d is not direct"), __pyx_v_i);
if (unlikely(__pyx_t_6 == ((
int)-1))) __PYX_ERR(0, 1297, __pyx_L1_error)
32284 __pyx_t_2 = (__pyx_slices_overlap((&__pyx_v_src), (&__pyx_v_dst), __pyx_v_ndim, __pyx_v_itemsize) != 0);
32294 __pyx_t_2 = ((!(__pyx_memviewslice_is_contig(__pyx_v_src, __pyx_v_order, __pyx_v_ndim) != 0)) != 0);
32304 __pyx_v_order = __pyx_get_best_slice_order((&__pyx_v_dst), __pyx_v_ndim);
32322 __pyx_t_7 = __pyx_memoryview_copy_data_to_temp((&__pyx_v_src), (&__pyx_v_tmp), __pyx_v_order, __pyx_v_ndim);
if (unlikely(__pyx_t_7 == ((
void *)NULL))) __PYX_ERR(0, 1304, __pyx_L1_error)
32323 __pyx_v_tmpdata = __pyx_t_7;
32332 __pyx_v_src = __pyx_v_tmp;
32350 __pyx_t_2 = ((!(__pyx_v_broadcasting != 0)) != 0);
32360 __pyx_t_2 = (__pyx_memviewslice_is_contig(__pyx_v_src,
'C', __pyx_v_ndim) != 0);
32370 __pyx_v_direct_copy = __pyx_memviewslice_is_contig(__pyx_v_dst,
'C', __pyx_v_ndim);
32389 __pyx_t_2 = (__pyx_memviewslice_is_contig(__pyx_v_src,
'F', __pyx_v_ndim) != 0);
32399 __pyx_v_direct_copy = __pyx_memviewslice_is_contig(__pyx_v_dst,
'F', __pyx_v_ndim);
32418 __pyx_t_2 = (__pyx_v_direct_copy != 0);
32428 __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 0);
32437 (void)(memcpy(__pyx_v_dst.data, __pyx_v_src.data, __pyx_memoryview_slice_get_size((&__pyx_v_src), __pyx_v_ndim)));
32446 __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 1);
32455 free(__pyx_v_tmpdata);
32492 __pyx_t_2 = (__pyx_v_order ==
'F');
32494 __pyx_t_2 = (
'F' == __pyx_get_best_slice_order((&__pyx_v_dst), __pyx_v_ndim));
32496 __pyx_t_8 = (__pyx_t_2 != 0);
32506 __pyx_t_5 = __pyx_memslice_transpose((&__pyx_v_src));
if (unlikely(__pyx_t_5 == ((
int)0))) __PYX_ERR(0, 1326, __pyx_L1_error)
32515 __pyx_t_5 = __pyx_memslice_transpose((&__pyx_v_dst));
if (unlikely(__pyx_t_5 == ((
int)0))) __PYX_ERR(0, 1327, __pyx_L1_error)
32533 __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 0);
32542 copy_strided_to_strided((&__pyx_v_src), (&__pyx_v_dst), __pyx_v_ndim, __pyx_v_itemsize);
32551 __pyx_memoryview_refcount_copying((&__pyx_v_dst), __pyx_v_dtype_is_object, __pyx_v_ndim, 1);
32560 free(__pyx_v_tmpdata);
32584 PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
32586 __Pyx_AddTraceback(
"View.MemoryView.memoryview_copy_contents", __pyx_clineno, __pyx_lineno, __pyx_filename);
32588 __Pyx_PyGILState_Release(__pyx_gilstate_save);
32604 static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *__pyx_v_mslice,
int __pyx_v_ndim,
int __pyx_v_ndim_other) {
32606 int __pyx_v_offset;
32618 __pyx_v_offset = (__pyx_v_ndim_other - __pyx_v_ndim);
32627 for (__pyx_t_1 = (__pyx_v_ndim - 1); __pyx_t_1 > -1; __pyx_t_1-=1) {
32628 __pyx_v_i = __pyx_t_1;
32637 (__pyx_v_mslice->shape[(__pyx_v_i + __pyx_v_offset)]) = (__pyx_v_mslice->shape[__pyx_v_i]);
32646 (__pyx_v_mslice->strides[(__pyx_v_i + __pyx_v_offset)]) = (__pyx_v_mslice->strides[__pyx_v_i]);
32655 (__pyx_v_mslice->suboffsets[(__pyx_v_i + __pyx_v_offset)]) = (__pyx_v_mslice->suboffsets[__pyx_v_i]);
32665 __pyx_t_1 = __pyx_v_offset;
32666 __pyx_t_2 = __pyx_t_1;
32667 for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
32668 __pyx_v_i = __pyx_t_3;
32677 (__pyx_v_mslice->shape[__pyx_v_i]) = 1;
32686 (__pyx_v_mslice->strides[__pyx_v_i]) = (__pyx_v_mslice->strides[0]);
32695 (__pyx_v_mslice->suboffsets[__pyx_v_i]) = -1
L;
32717 static void __pyx_memoryview_refcount_copying(__Pyx_memviewslice *__pyx_v_dst,
int __pyx_v_dtype_is_object,
int __pyx_v_ndim,
int __pyx_v_inc) {
32727 __pyx_t_1 = (__pyx_v_dtype_is_object != 0);
32737 __pyx_memoryview_refcount_objects_in_slice_with_gil(__pyx_v_dst->data, __pyx_v_dst->shape, __pyx_v_dst->strides, __pyx_v_ndim, __pyx_v_inc);
32767 static void __pyx_memoryview_refcount_objects_in_slice_with_gil(
char *__pyx_v_data, Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides,
int __pyx_v_ndim,
int __pyx_v_inc) {
32768 __Pyx_RefNannyDeclarations
32770 PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
32772 __Pyx_RefNannySetupContext(
"refcount_objects_in_slice_with_gil", 0);
32781 __pyx_memoryview_refcount_objects_in_slice(__pyx_v_data, __pyx_v_shape, __pyx_v_strides, __pyx_v_ndim, __pyx_v_inc);
32792 __Pyx_RefNannyFinishContext();
32794 __Pyx_PyGILState_Release(__pyx_gilstate_save);
32806 static void __pyx_memoryview_refcount_objects_in_slice(
char *__pyx_v_data, Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides,
int __pyx_v_ndim,
int __pyx_v_inc) {
32807 CYTHON_UNUSED Py_ssize_t __pyx_v_i;
32808 __Pyx_RefNannyDeclarations
32809 Py_ssize_t __pyx_t_1;
32810 Py_ssize_t __pyx_t_2;
32811 Py_ssize_t __pyx_t_3;
32813 __Pyx_RefNannySetupContext(
"refcount_objects_in_slice", 0);
32822 __pyx_t_1 = (__pyx_v_shape[0]);
32823 __pyx_t_2 = __pyx_t_1;
32824 for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
32825 __pyx_v_i = __pyx_t_3;
32834 __pyx_t_4 = ((__pyx_v_ndim == 1) != 0);
32844 __pyx_t_4 = (__pyx_v_inc != 0);
32854 Py_INCREF((((PyObject **)__pyx_v_data)[0]));
32874 Py_DECREF((((PyObject **)__pyx_v_data)[0]));
32904 __pyx_memoryview_refcount_objects_in_slice(__pyx_v_data, (__pyx_v_shape + 1), (__pyx_v_strides + 1), (__pyx_v_ndim - 1), __pyx_v_inc);
32915 __pyx_v_data = (__pyx_v_data + (__pyx_v_strides[0]));
32927 __Pyx_RefNannyFinishContext();
32938 static void __pyx_memoryview_slice_assign_scalar(__Pyx_memviewslice *__pyx_v_dst,
int __pyx_v_ndim,
size_t __pyx_v_itemsize,
void *__pyx_v_item,
int __pyx_v_dtype_is_object) {
32947 __pyx_memoryview_refcount_copying(__pyx_v_dst, __pyx_v_dtype_is_object, __pyx_v_ndim, 0);
32956 __pyx_memoryview__slice_assign_scalar(__pyx_v_dst->data, __pyx_v_dst->shape, __pyx_v_dst->strides, __pyx_v_ndim, __pyx_v_itemsize, __pyx_v_item);
32965 __pyx_memoryview_refcount_copying(__pyx_v_dst, __pyx_v_dtype_is_object, __pyx_v_ndim, 1);
32986 static void __pyx_memoryview__slice_assign_scalar(
char *__pyx_v_data, Py_ssize_t *__pyx_v_shape, Py_ssize_t *__pyx_v_strides,
int __pyx_v_ndim,
size_t __pyx_v_itemsize,
void *__pyx_v_item) {
32987 CYTHON_UNUSED Py_ssize_t __pyx_v_i;
32988 Py_ssize_t __pyx_v_stride;
32989 Py_ssize_t __pyx_v_extent;
32991 Py_ssize_t __pyx_t_2;
32992 Py_ssize_t __pyx_t_3;
32993 Py_ssize_t __pyx_t_4;
33002 __pyx_v_stride = (__pyx_v_strides[0]);
33011 __pyx_v_extent = (__pyx_v_shape[0]);
33020 __pyx_t_1 = ((__pyx_v_ndim == 1) != 0);
33030 __pyx_t_2 = __pyx_v_extent;
33031 __pyx_t_3 = __pyx_t_2;
33032 for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
33033 __pyx_v_i = __pyx_t_4;
33042 (void)(memcpy(__pyx_v_data, __pyx_v_item, __pyx_v_itemsize));
33051 __pyx_v_data = (__pyx_v_data + __pyx_v_stride);
33072 __pyx_t_2 = __pyx_v_extent;
33073 __pyx_t_3 = __pyx_t_2;
33074 for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
33075 __pyx_v_i = __pyx_t_4;
33084 __pyx_memoryview__slice_assign_scalar(__pyx_v_data, (__pyx_v_shape + 1), (__pyx_v_strides + 1), (__pyx_v_ndim - 1), __pyx_v_itemsize, __pyx_v_item);
33093 __pyx_v_data = (__pyx_v_data + __pyx_v_stride);
33116 static PyObject *__pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds);
33117 static PyMethodDef __pyx_mdef_15View_dot_MemoryView_1__pyx_unpickle_Enum = {
"__pyx_unpickle_Enum", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum, METH_VARARGS|METH_KEYWORDS, 0};
33118 static PyObject *__pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
33119 PyObject *__pyx_v___pyx_type = 0;
33120 long __pyx_v___pyx_checksum;
33121 PyObject *__pyx_v___pyx_state = 0;
33122 PyObject *__pyx_r = 0;
33123 __Pyx_RefNannyDeclarations
33124 __Pyx_RefNannySetupContext(
"__pyx_unpickle_Enum (wrapper)", 0);
33126 static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_pyx_type,&__pyx_n_s_pyx_checksum,&__pyx_n_s_pyx_state,0};
33127 PyObject* values[3] = {0,0,0};
33128 if (unlikely(__pyx_kwds)) {
33129 Py_ssize_t kw_args;
33130 const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
33131 switch (pos_args) {
33132 case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33133 CYTHON_FALLTHROUGH;
33134 case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33135 CYTHON_FALLTHROUGH;
33136 case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33137 CYTHON_FALLTHROUGH;
33139 default:
goto __pyx_L5_argtuple_error;
33141 kw_args = PyDict_Size(__pyx_kwds);
33142 switch (pos_args) {
33144 if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_type)) != 0)) kw_args--;
33145 else goto __pyx_L5_argtuple_error;
33146 CYTHON_FALLTHROUGH;
33148 if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_checksum)) != 0)) kw_args--;
33150 __Pyx_RaiseArgtupleInvalid(
"__pyx_unpickle_Enum", 1, 3, 3, 1); __PYX_ERR(0, 1, __pyx_L3_error)
33152 CYTHON_FALLTHROUGH;
33154 if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_pyx_state)) != 0)) kw_args--;
33156 __Pyx_RaiseArgtupleInvalid(
"__pyx_unpickle_Enum", 1, 3, 3, 2); __PYX_ERR(0, 1, __pyx_L3_error)
33159 if (unlikely(kw_args > 0)) {
33160 if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args,
"__pyx_unpickle_Enum") < 0)) __PYX_ERR(0, 1, __pyx_L3_error)
33162 }
else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
33163 goto __pyx_L5_argtuple_error;
33165 values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
33166 values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
33167 values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
33169 __pyx_v___pyx_type = values[0];
33170 __pyx_v___pyx_checksum = __Pyx_PyInt_As_long(values[1]);
if (unlikely((__pyx_v___pyx_checksum == (
long)-1) && PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L3_error)
33171 __pyx_v___pyx_state = values[2];
33173 goto __pyx_L4_argument_unpacking_done;
33174 __pyx_L5_argtuple_error:;
33175 __Pyx_RaiseArgtupleInvalid(
"__pyx_unpickle_Enum", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1, __pyx_L3_error)
33177 __Pyx_AddTraceback(
"View.MemoryView.__pyx_unpickle_Enum", __pyx_clineno, __pyx_lineno, __pyx_filename);
33178 __Pyx_RefNannyFinishContext();
33180 __pyx_L4_argument_unpacking_done:;
33181 __pyx_r = __pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(__pyx_self, __pyx_v___pyx_type, __pyx_v___pyx_checksum, __pyx_v___pyx_state);
33184 __Pyx_RefNannyFinishContext();
33188 static PyObject *__pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type,
long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state) {
33189 PyObject *__pyx_v___pyx_PickleError = 0;
33190 PyObject *__pyx_v___pyx_result = 0;
33191 PyObject *__pyx_r = NULL;
33192 __Pyx_RefNannyDeclarations
33194 PyObject *__pyx_t_2 = NULL;
33195 PyObject *__pyx_t_3 = NULL;
33196 PyObject *__pyx_t_4 = NULL;
33197 PyObject *__pyx_t_5 = NULL;
33199 __Pyx_RefNannySetupContext(
"__pyx_unpickle_Enum", 0);
33208 __pyx_t_1 = ((__pyx_v___pyx_checksum != 0xb068931) != 0);
33218 __pyx_t_2 = PyList_New(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5, __pyx_L1_error)
33219 __Pyx_GOTREF(__pyx_t_2);
33220 __Pyx_INCREF(__pyx_n_s_PickleError);
33221 __Pyx_GIVEREF(__pyx_n_s_PickleError);
33222 PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_PickleError);
33223 __pyx_t_3 = __Pyx_Import(__pyx_n_s_pickle, __pyx_t_2, 0);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5, __pyx_L1_error)
33224 __Pyx_GOTREF(__pyx_t_3);
33225 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
33226 __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_PickleError);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5, __pyx_L1_error)
33227 __Pyx_GOTREF(__pyx_t_2);
33228 __Pyx_INCREF(__pyx_t_2);
33229 __pyx_v___pyx_PickleError = __pyx_t_2;
33230 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
33231 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
33240 __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_v___pyx_checksum);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6, __pyx_L1_error)
33241 __Pyx_GOTREF(__pyx_t_2);
33242 __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_Incompatible_checksums_s_vs_0xb0, __pyx_t_2);
if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6, __pyx_L1_error)
33243 __Pyx_GOTREF(__pyx_t_4);
33244 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
33245 __Pyx_INCREF(__pyx_v___pyx_PickleError);
33246 __pyx_t_2 = __pyx_v___pyx_PickleError; __pyx_t_5 = NULL;
33247 if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
33248 __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
33249 if (likely(__pyx_t_5)) {
33250 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
33251 __Pyx_INCREF(__pyx_t_5);
33252 __Pyx_INCREF(
function);
33253 __Pyx_DECREF_SET(__pyx_t_2,
function);
33256 __pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4);
33257 __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
33258 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
33259 if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6, __pyx_L1_error)
33260 __Pyx_GOTREF(__pyx_t_3);
33261 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
33262 __Pyx_Raise(__pyx_t_3, 0, 0, 0);
33263 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
33264 __PYX_ERR(0, 6, __pyx_L1_error)
33282 __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_MemviewEnum_type), __pyx_n_s_new);
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7, __pyx_L1_error)
33283 __Pyx_GOTREF(__pyx_t_2);
33285 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
33286 __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
33287 if (likely(__pyx_t_4)) {
33288 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_2);
33289 __Pyx_INCREF(__pyx_t_4);
33290 __Pyx_INCREF(
function);
33291 __Pyx_DECREF_SET(__pyx_t_2,
function);
33294 __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx_v___pyx_type) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v___pyx_type);
33295 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
33296 if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7, __pyx_L1_error)
33297 __Pyx_GOTREF(__pyx_t_3);
33298 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
33299 __pyx_v___pyx_result = __pyx_t_3;
33309 __pyx_t_1 = (__pyx_v___pyx_state != Py_None);
33310 __pyx_t_6 = (__pyx_t_1 != 0);
33320 if (!(likely(PyTuple_CheckExact(__pyx_v___pyx_state))||((__pyx_v___pyx_state) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"tuple", Py_TYPE(__pyx_v___pyx_state)->tp_name), 0))) __PYX_ERR(0, 9, __pyx_L1_error)
33321 __pyx_t_3 = __pyx_unpickle_Enum__set_state(((
struct __pyx_MemviewEnum_obj *)__pyx_v___pyx_result), ((PyObject*)__pyx_v___pyx_state));
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9, __pyx_L1_error)
33322 __Pyx_GOTREF(__pyx_t_3);
33323 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
33341 __Pyx_XDECREF(__pyx_r);
33342 __Pyx_INCREF(__pyx_v___pyx_result);
33343 __pyx_r = __pyx_v___pyx_result;
33354 __Pyx_XDECREF(__pyx_t_2);
33355 __Pyx_XDECREF(__pyx_t_3);
33356 __Pyx_XDECREF(__pyx_t_4);
33357 __Pyx_XDECREF(__pyx_t_5);
33358 __Pyx_AddTraceback(
"View.MemoryView.__pyx_unpickle_Enum", __pyx_clineno, __pyx_lineno, __pyx_filename);
33361 __Pyx_XDECREF(__pyx_v___pyx_PickleError);
33362 __Pyx_XDECREF(__pyx_v___pyx_result);
33363 __Pyx_XGIVEREF(__pyx_r);
33364 __Pyx_RefNannyFinishContext();
33376 static PyObject *__pyx_unpickle_Enum__set_state(
struct __pyx_MemviewEnum_obj *__pyx_v___pyx_result, PyObject *__pyx_v___pyx_state) {
33377 PyObject *__pyx_r = NULL;
33378 __Pyx_RefNannyDeclarations
33379 PyObject *__pyx_t_1 = NULL;
33381 Py_ssize_t __pyx_t_3;
33384 PyObject *__pyx_t_6 = NULL;
33385 PyObject *__pyx_t_7 = NULL;
33386 PyObject *__pyx_t_8 = NULL;
33387 __Pyx_RefNannySetupContext(
"__pyx_unpickle_Enum__set_state", 0);
33396 if (unlikely(__pyx_v___pyx_state == Py_None)) {
33397 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
33398 __PYX_ERR(0, 12, __pyx_L1_error)
33400 __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 0,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 12, __pyx_L1_error)
33401 __Pyx_GOTREF(__pyx_t_1);
33402 __Pyx_GIVEREF(__pyx_t_1);
33403 __Pyx_GOTREF(__pyx_v___pyx_result->name);
33404 __Pyx_DECREF(__pyx_v___pyx_result->name);
33405 __pyx_v___pyx_result->name = __pyx_t_1;
33414 if (unlikely(__pyx_v___pyx_state == Py_None)) {
33415 PyErr_SetString(PyExc_TypeError,
"object of type 'NoneType' has no len()");
33416 __PYX_ERR(0, 13, __pyx_L1_error)
33418 __pyx_t_3 = PyTuple_GET_SIZE(__pyx_v___pyx_state);
if (unlikely(__pyx_t_3 == ((Py_ssize_t)-1))) __PYX_ERR(0, 13, __pyx_L1_error)
33419 __pyx_t_4 = ((__pyx_t_3 > 1) != 0);
33422 __pyx_t_2 = __pyx_t_4;
33423 goto __pyx_L4_bool_binop_done;
33425 __pyx_t_4 = __Pyx_HasAttr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict);
if (unlikely(__pyx_t_4 == ((
int)-1))) __PYX_ERR(0, 13, __pyx_L1_error)
33426 __pyx_t_5 = (__pyx_t_4 != 0);
33427 __pyx_t_2 = __pyx_t_5;
33428 __pyx_L4_bool_binop_done:;
33436 __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v___pyx_result), __pyx_n_s_dict);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14, __pyx_L1_error)
33437 __Pyx_GOTREF(__pyx_t_6);
33438 __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_update);
if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 14, __pyx_L1_error)
33439 __Pyx_GOTREF(__pyx_t_7);
33440 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
33441 if (unlikely(__pyx_v___pyx_state == Py_None)) {
33442 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not subscriptable");
33443 __PYX_ERR(0, 14, __pyx_L1_error)
33445 __pyx_t_6 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1,
long, 1, __Pyx_PyInt_From_long, 0, 0, 1);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 14, __pyx_L1_error)
33446 __Pyx_GOTREF(__pyx_t_6);
33448 if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
33449 __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7);
33450 if (likely(__pyx_t_8)) {
33451 PyObject*
function = PyMethod_GET_FUNCTION(__pyx_t_7);
33452 __Pyx_INCREF(__pyx_t_8);
33453 __Pyx_INCREF(
function);
33454 __Pyx_DECREF_SET(__pyx_t_7,
function);
33457 __pyx_t_1 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_6);
33458 __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
33459 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
33460 if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 14, __pyx_L1_error)
33461 __Pyx_GOTREF(__pyx_t_1);
33462 __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
33463 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
33482 __pyx_r = Py_None; __Pyx_INCREF(Py_None);
33485 __Pyx_XDECREF(__pyx_t_1);
33486 __Pyx_XDECREF(__pyx_t_6);
33487 __Pyx_XDECREF(__pyx_t_7);
33488 __Pyx_XDECREF(__pyx_t_8);
33489 __Pyx_AddTraceback(
"View.MemoryView.__pyx_unpickle_Enum__set_state", __pyx_clineno, __pyx_lineno, __pyx_filename);
33492 __Pyx_XGIVEREF(__pyx_r);
33493 __Pyx_RefNannyFinishContext();
33505 static PyObject *__pyx_format_from_typeinfo(__Pyx_TypeInfo *__pyx_v_type) {
33506 __Pyx_StructField *__pyx_v_field;
33507 struct __pyx_typeinfo_string __pyx_v_fmt;
33508 PyObject *__pyx_v_part = 0;
33509 PyObject *__pyx_v_result = 0;
33510 PyObject *__pyx_v_alignment = NULL;
33511 PyObject *__pyx_v_parts = NULL;
33512 PyObject *__pyx_v_extents = NULL;
33514 PyObject *__pyx_r = NULL;
33515 __Pyx_RefNannyDeclarations
33518 PyObject *__pyx_t_3 = NULL;
33519 __Pyx_StructField *__pyx_t_4;
33520 PyObject *__pyx_t_5 = NULL;
33521 PyObject *__pyx_t_6 = NULL;
33526 __Pyx_RefNannySetupContext(
"format_from_typeinfo", 0);
33535 __pyx_t_1 = ((__pyx_v_type->typegroup ==
'S') != 0);
33545 #ifndef CYTHON_WITHOUT_ASSERTIONS
33546 if (unlikely(!Py_OptimizeFlag)) {
33547 __pyx_t_2 = ((__pyx_v_type->fields != NULL) != 0);
33550 __pyx_t_1 = __pyx_t_2;
33551 goto __pyx_L4_bool_binop_done;
33553 __pyx_t_2 = ((__pyx_v_type->fields->type != NULL) != 0);
33554 __pyx_t_1 = __pyx_t_2;
33555 __pyx_L4_bool_binop_done:;
33556 if (unlikely(!__pyx_t_1)) {
33557 PyErr_SetNone(PyExc_AssertionError);
33558 __PYX_ERR(0, 1466, __pyx_L1_error)
33570 __pyx_t_1 = ((__pyx_v_type->flags & __PYX_BUF_FLAGS_PACKED_STRUCT) != 0);
33580 __Pyx_INCREF(__pyx_kp_b__31);
33581 __pyx_v_alignment = __pyx_kp_b__31;
33601 __Pyx_INCREF(__pyx_kp_b__32);
33602 __pyx_v_alignment = __pyx_kp_b__32;
33613 __pyx_t_3 = PyList_New(1);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1473, __pyx_L1_error)
33614 __Pyx_GOTREF(__pyx_t_3);
33615 __Pyx_INCREF(__pyx_kp_b_T);
33616 __Pyx_GIVEREF(__pyx_kp_b_T);
33617 PyList_SET_ITEM(__pyx_t_3, 0, __pyx_kp_b_T);
33618 __pyx_v_parts = ((PyObject*)__pyx_t_3);
33628 __pyx_t_4 = __pyx_v_type->fields;
33629 __pyx_v_field = __pyx_t_4;
33639 __pyx_t_1 = (__pyx_v_field->type != 0);
33640 if (!__pyx_t_1)
break;
33649 __pyx_t_3 = __pyx_format_from_typeinfo(__pyx_v_field->type);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1477, __pyx_L1_error)
33650 __Pyx_GOTREF(__pyx_t_3);
33651 __Pyx_XDECREF_SET(__pyx_v_part, ((PyObject*)__pyx_t_3));
33661 __pyx_t_3 = PyNumber_Add(__pyx_v_part, __pyx_kp_b__33);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1478, __pyx_L1_error)
33662 __Pyx_GOTREF(__pyx_t_3);
33663 __pyx_t_5 = __Pyx_PyBytes_FromString(__pyx_v_field->name);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1478, __pyx_L1_error)
33664 __Pyx_GOTREF(__pyx_t_5);
33665 __pyx_t_6 = PyNumber_Add(__pyx_t_3, __pyx_t_5);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1478, __pyx_L1_error)
33666 __Pyx_GOTREF(__pyx_t_6);
33667 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
33668 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
33669 __pyx_t_5 = PyNumber_Add(__pyx_t_6, __pyx_kp_b__33);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1478, __pyx_L1_error)
33670 __Pyx_GOTREF(__pyx_t_5);
33671 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
33672 __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_parts, __pyx_t_5);
if (unlikely(__pyx_t_7 == ((
int)-1))) __PYX_ERR(0, 1478, __pyx_L1_error)
33673 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
33682 __pyx_v_field = (__pyx_v_field + 1);
33692 __pyx_t_5 = __Pyx_PyBytes_Join(__pyx_v_alignment, __pyx_v_parts);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1481, __pyx_L1_error)
33693 __Pyx_GOTREF(__pyx_t_5);
33694 __pyx_t_6 = PyNumber_Add(__pyx_t_5, __pyx_kp_b__34);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1481, __pyx_L1_error)
33695 __Pyx_GOTREF(__pyx_t_6);
33696 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
33697 if (!(likely(PyBytes_CheckExact(__pyx_t_6))||((__pyx_t_6) == Py_None)||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"bytes", Py_TYPE(__pyx_t_6)->tp_name), 0))) __PYX_ERR(0, 1481, __pyx_L1_error)
33698 __pyx_v_result = ((PyObject*)__pyx_t_6);
33719 __pyx_v_fmt = __Pyx_TypeInfoToFormat(__pyx_v_type);
33728 __pyx_t_1 = ((__pyx_v_type->arraysize[0]) != 0);
33738 __pyx_t_6 = PyList_New(0);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1485, __pyx_L1_error)
33739 __Pyx_GOTREF(__pyx_t_6);
33740 __pyx_t_8 = __pyx_v_type->ndim;
33741 __pyx_t_9 = __pyx_t_8;
33742 for (__pyx_t_10 = 0; __pyx_t_10 < __pyx_t_9; __pyx_t_10+=1) {
33743 __pyx_v_i = __pyx_t_10;
33744 __pyx_t_5 = __Pyx_PyInt_FromSize_t((__pyx_v_type->arraysize[__pyx_v_i]));
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1485, __pyx_L1_error)
33745 __Pyx_GOTREF(__pyx_t_5);
33746 __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_t_5);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1485, __pyx_L1_error)
33747 __Pyx_GOTREF(__pyx_t_3);
33748 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
33749 if (unlikely(__Pyx_ListComp_Append(__pyx_t_6, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 1485, __pyx_L1_error)
33750 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
33752 __pyx_v_extents = ((PyObject*)__pyx_t_6);
33762 __pyx_t_6 = PyUnicode_Join(__pyx_kp_u__35, __pyx_v_extents);
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1486, __pyx_L1_error)
33763 __Pyx_GOTREF(__pyx_t_6);
33764 __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_s, __pyx_t_6);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1486, __pyx_L1_error)
33765 __Pyx_GOTREF(__pyx_t_3);
33766 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
33767 __pyx_t_6 = PyUnicode_AsASCIIString(((PyObject*)__pyx_t_3));
if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1486, __pyx_L1_error)
33768 __Pyx_GOTREF(__pyx_t_6);
33769 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
33770 __pyx_t_3 = __Pyx_PyObject_FromString(__pyx_v_fmt.string);
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1486, __pyx_L1_error)
33771 __Pyx_GOTREF(__pyx_t_3);
33772 __pyx_t_5 = PyNumber_Add(__pyx_t_6, __pyx_t_3);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1486, __pyx_L1_error)
33773 __Pyx_GOTREF(__pyx_t_5);
33774 __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
33775 __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
33776 if (!(likely(PyBytes_CheckExact(__pyx_t_5))||(PyErr_Format(PyExc_TypeError,
"Expected %.16s, got %.200s",
"bytes", Py_TYPE(__pyx_t_5)->tp_name), 0))) __PYX_ERR(0, 1486, __pyx_L1_error)
33777 __pyx_v_result = ((PyObject*)__pyx_t_5);
33798 __pyx_t_5 = __Pyx_PyObject_FromString(__pyx_v_fmt.string);
if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1488, __pyx_L1_error)
33799 __Pyx_GOTREF(__pyx_t_5);
33800 __pyx_v_result = ((PyObject*)__pyx_t_5);
33812 __Pyx_XDECREF(__pyx_r);
33813 __Pyx_INCREF(__pyx_v_result);
33814 __pyx_r = __pyx_v_result;
33827 __Pyx_XDECREF(__pyx_t_3);
33828 __Pyx_XDECREF(__pyx_t_5);
33829 __Pyx_XDECREF(__pyx_t_6);
33830 __Pyx_AddTraceback(
"BufferFormatFromTypeInfo.format_from_typeinfo", __pyx_clineno, __pyx_lineno, __pyx_filename);
33833 __Pyx_XDECREF(__pyx_v_part);
33834 __Pyx_XDECREF(__pyx_v_result);
33835 __Pyx_XDECREF(__pyx_v_alignment);
33836 __Pyx_XDECREF(__pyx_v_parts);
33837 __Pyx_XDECREF(__pyx_v_extents);
33838 __Pyx_XGIVEREF(__pyx_r);
33839 __Pyx_RefNannyFinishContext();
33843 static PyObject *__pyx_tp_new_10cmeshTools_CMesh(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
33844 struct __pyx_obj_10cmeshTools_CMesh *p;
33846 if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
33847 o = (*t->tp_alloc)(t, 0);
33849 o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
33851 if (unlikely(!o))
return 0;
33852 p = ((
struct __pyx_obj_10cmeshTools_CMesh *)o);
33853 p->elementNodesArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33854 p->nodeElementsArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33855 p->nodeElementOffsets = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33856 p->elementNeighborsArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33857 p->elementBoundariesArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33858 p->elementBoundaryNodesArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33859 p->elementBoundaryElementsArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33860 p->elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33861 p->interiorElementBoundariesArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33862 p->exteriorElementBoundariesArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33863 p->edgeNodesArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33864 p->nodeStarArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33865 p->nodeStarOffsets = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33866 p->elementMaterialTypes = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33867 p->elementBoundaryMaterialTypes = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33868 p->nodeMaterialTypes = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33869 p->nodeArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33870 p->elementIJK = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33871 p->weights = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33872 p->U_KNOT = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33873 p->V_KNOT = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33874 p->W_KNOT = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33875 p->elementDiametersArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33876 p->elementInnerDiametersArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33877 p->elementBoundaryDiametersArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33878 p->elementBarycentersArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33879 p->elementBoundaryBarycentersArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33880 p->nodeDiametersArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33881 p->nodeSupportArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
33885 static void __pyx_tp_dealloc_10cmeshTools_CMesh(PyObject *o) {
33886 struct __pyx_obj_10cmeshTools_CMesh *p = (
struct __pyx_obj_10cmeshTools_CMesh *)o;
33887 #if CYTHON_USE_TP_FINALIZE
33888 if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
33889 if (PyObject_CallFinalizerFromDealloc(o))
return;
33892 PyObject_GC_UnTrack(o);
33893 Py_CLEAR(p->elementNodesArray);
33894 Py_CLEAR(p->nodeElementsArray);
33895 Py_CLEAR(p->nodeElementOffsets);
33896 Py_CLEAR(p->elementNeighborsArray);
33897 Py_CLEAR(p->elementBoundariesArray);
33898 Py_CLEAR(p->elementBoundaryNodesArray);
33899 Py_CLEAR(p->elementBoundaryElementsArray);
33900 Py_CLEAR(p->elementBoundaryLocalElementBoundariesArray);
33901 Py_CLEAR(p->interiorElementBoundariesArray);
33902 Py_CLEAR(p->exteriorElementBoundariesArray);
33903 Py_CLEAR(p->edgeNodesArray);
33904 Py_CLEAR(p->nodeStarArray);
33905 Py_CLEAR(p->nodeStarOffsets);
33906 Py_CLEAR(p->elementMaterialTypes);
33907 Py_CLEAR(p->elementBoundaryMaterialTypes);
33908 Py_CLEAR(p->nodeMaterialTypes);
33909 Py_CLEAR(p->nodeArray);
33910 Py_CLEAR(p->elementIJK);
33911 Py_CLEAR(p->weights);
33912 Py_CLEAR(p->U_KNOT);
33913 Py_CLEAR(p->V_KNOT);
33914 Py_CLEAR(p->W_KNOT);
33915 Py_CLEAR(p->elementDiametersArray);
33916 Py_CLEAR(p->elementInnerDiametersArray);
33917 Py_CLEAR(p->elementBoundaryDiametersArray);
33918 Py_CLEAR(p->elementBarycentersArray);
33919 Py_CLEAR(p->elementBoundaryBarycentersArray);
33920 Py_CLEAR(p->nodeDiametersArray);
33921 Py_CLEAR(p->nodeSupportArray);
33922 (*Py_TYPE(o)->tp_free)(o);
33925 static int __pyx_tp_traverse_10cmeshTools_CMesh(PyObject *o, visitproc
v,
void *a) {
33927 struct __pyx_obj_10cmeshTools_CMesh *p = (
struct __pyx_obj_10cmeshTools_CMesh *)o;
33928 if (p->elementNodesArray) {
33929 e = (*v)(((PyObject *)p->elementNodesArray), a);
if (e)
return e;
33931 if (p->nodeElementsArray) {
33932 e = (*v)(((PyObject *)p->nodeElementsArray), a);
if (e)
return e;
33934 if (p->nodeElementOffsets) {
33935 e = (*v)(((PyObject *)p->nodeElementOffsets), a);
if (e)
return e;
33937 if (p->elementNeighborsArray) {
33938 e = (*v)(((PyObject *)p->elementNeighborsArray), a);
if (e)
return e;
33940 if (p->elementBoundariesArray) {
33941 e = (*v)(((PyObject *)p->elementBoundariesArray), a);
if (e)
return e;
33943 if (p->elementBoundaryNodesArray) {
33944 e = (*v)(((PyObject *)p->elementBoundaryNodesArray), a);
if (e)
return e;
33946 if (p->elementBoundaryElementsArray) {
33947 e = (*v)(((PyObject *)p->elementBoundaryElementsArray), a);
if (e)
return e;
33949 if (p->elementBoundaryLocalElementBoundariesArray) {
33950 e = (*v)(((PyObject *)p->elementBoundaryLocalElementBoundariesArray), a);
if (e)
return e;
33952 if (p->interiorElementBoundariesArray) {
33953 e = (*v)(((PyObject *)p->interiorElementBoundariesArray), a);
if (e)
return e;
33955 if (p->exteriorElementBoundariesArray) {
33956 e = (*v)(((PyObject *)p->exteriorElementBoundariesArray), a);
if (e)
return e;
33958 if (p->edgeNodesArray) {
33959 e = (*v)(((PyObject *)p->edgeNodesArray), a);
if (e)
return e;
33961 if (p->nodeStarArray) {
33962 e = (*v)(((PyObject *)p->nodeStarArray), a);
if (e)
return e;
33964 if (p->nodeStarOffsets) {
33965 e = (*v)(((PyObject *)p->nodeStarOffsets), a);
if (e)
return e;
33967 if (p->elementMaterialTypes) {
33968 e = (*v)(((PyObject *)p->elementMaterialTypes), a);
if (e)
return e;
33970 if (p->elementBoundaryMaterialTypes) {
33971 e = (*v)(((PyObject *)p->elementBoundaryMaterialTypes), a);
if (e)
return e;
33973 if (p->nodeMaterialTypes) {
33974 e = (*v)(((PyObject *)p->nodeMaterialTypes), a);
if (e)
return e;
33976 if (p->nodeArray) {
33977 e = (*v)(((PyObject *)p->nodeArray), a);
if (e)
return e;
33979 if (p->elementIJK) {
33980 e = (*v)(((PyObject *)p->elementIJK), a);
if (e)
return e;
33983 e = (*v)(((PyObject *)p->weights), a);
if (e)
return e;
33986 e = (*v)(((PyObject *)p->U_KNOT), a);
if (e)
return e;
33989 e = (*v)(((PyObject *)p->V_KNOT), a);
if (e)
return e;
33992 e = (*v)(((PyObject *)p->W_KNOT), a);
if (e)
return e;
33994 if (p->elementDiametersArray) {
33995 e = (*v)(((PyObject *)p->elementDiametersArray), a);
if (e)
return e;
33997 if (p->elementInnerDiametersArray) {
33998 e = (*v)(((PyObject *)p->elementInnerDiametersArray), a);
if (e)
return e;
34000 if (p->elementBoundaryDiametersArray) {
34001 e = (*v)(((PyObject *)p->elementBoundaryDiametersArray), a);
if (e)
return e;
34003 if (p->elementBarycentersArray) {
34004 e = (*v)(((PyObject *)p->elementBarycentersArray), a);
if (e)
return e;
34006 if (p->elementBoundaryBarycentersArray) {
34007 e = (*v)(((PyObject *)p->elementBoundaryBarycentersArray), a);
if (e)
return e;
34009 if (p->nodeDiametersArray) {
34010 e = (*v)(((PyObject *)p->nodeDiametersArray), a);
if (e)
return e;
34012 if (p->nodeSupportArray) {
34013 e = (*v)(((PyObject *)p->nodeSupportArray), a);
if (e)
return e;
34018 static int __pyx_tp_clear_10cmeshTools_CMesh(PyObject *o) {
34020 struct __pyx_obj_10cmeshTools_CMesh *p = (
struct __pyx_obj_10cmeshTools_CMesh *)o;
34021 tmp = ((PyObject*)p->elementNodesArray);
34022 p->elementNodesArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34024 tmp = ((PyObject*)p->nodeElementsArray);
34025 p->nodeElementsArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34027 tmp = ((PyObject*)p->nodeElementOffsets);
34028 p->nodeElementOffsets = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34030 tmp = ((PyObject*)p->elementNeighborsArray);
34031 p->elementNeighborsArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34033 tmp = ((PyObject*)p->elementBoundariesArray);
34034 p->elementBoundariesArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34036 tmp = ((PyObject*)p->elementBoundaryNodesArray);
34037 p->elementBoundaryNodesArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34039 tmp = ((PyObject*)p->elementBoundaryElementsArray);
34040 p->elementBoundaryElementsArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34042 tmp = ((PyObject*)p->elementBoundaryLocalElementBoundariesArray);
34043 p->elementBoundaryLocalElementBoundariesArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34045 tmp = ((PyObject*)p->interiorElementBoundariesArray);
34046 p->interiorElementBoundariesArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34048 tmp = ((PyObject*)p->exteriorElementBoundariesArray);
34049 p->exteriorElementBoundariesArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34051 tmp = ((PyObject*)p->edgeNodesArray);
34052 p->edgeNodesArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34054 tmp = ((PyObject*)p->nodeStarArray);
34055 p->nodeStarArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34057 tmp = ((PyObject*)p->nodeStarOffsets);
34058 p->nodeStarOffsets = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34060 tmp = ((PyObject*)p->elementMaterialTypes);
34061 p->elementMaterialTypes = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34063 tmp = ((PyObject*)p->elementBoundaryMaterialTypes);
34064 p->elementBoundaryMaterialTypes = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34066 tmp = ((PyObject*)p->nodeMaterialTypes);
34067 p->nodeMaterialTypes = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34069 tmp = ((PyObject*)p->nodeArray);
34070 p->nodeArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34072 tmp = ((PyObject*)p->elementIJK);
34073 p->elementIJK = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34075 tmp = ((PyObject*)p->weights);
34076 p->weights = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34078 tmp = ((PyObject*)p->U_KNOT);
34079 p->U_KNOT = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34081 tmp = ((PyObject*)p->V_KNOT);
34082 p->V_KNOT = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34084 tmp = ((PyObject*)p->W_KNOT);
34085 p->W_KNOT = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34087 tmp = ((PyObject*)p->elementDiametersArray);
34088 p->elementDiametersArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34090 tmp = ((PyObject*)p->elementInnerDiametersArray);
34091 p->elementInnerDiametersArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34093 tmp = ((PyObject*)p->elementBoundaryDiametersArray);
34094 p->elementBoundaryDiametersArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34096 tmp = ((PyObject*)p->elementBarycentersArray);
34097 p->elementBarycentersArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34099 tmp = ((PyObject*)p->elementBoundaryBarycentersArray);
34100 p->elementBoundaryBarycentersArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34102 tmp = ((PyObject*)p->nodeDiametersArray);
34103 p->nodeDiametersArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34105 tmp = ((PyObject*)p->nodeSupportArray);
34106 p->nodeSupportArray = ((PyArrayObject *)Py_None); Py_INCREF(Py_None);
34111 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nElements_global(PyObject *o, CYTHON_UNUSED
void *x) {
34112 return __pyx_pw_10cmeshTools_5CMesh_16nElements_global_1__get__(o);
34115 static int __pyx_setprop_10cmeshTools_5CMesh_nElements_global(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34117 return __pyx_pw_10cmeshTools_5CMesh_16nElements_global_3__set__(o,
v);
34120 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34125 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nNodes_global(PyObject *o, CYTHON_UNUSED
void *x) {
34126 return __pyx_pw_10cmeshTools_5CMesh_13nNodes_global_1__get__(o);
34129 static int __pyx_setprop_10cmeshTools_5CMesh_nNodes_global(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34131 return __pyx_pw_10cmeshTools_5CMesh_13nNodes_global_3__set__(o,
v);
34134 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34139 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nNodes_element(PyObject *o, CYTHON_UNUSED
void *x) {
34140 return __pyx_pw_10cmeshTools_5CMesh_14nNodes_element_1__get__(o);
34143 static int __pyx_setprop_10cmeshTools_5CMesh_nNodes_element(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34145 return __pyx_pw_10cmeshTools_5CMesh_14nNodes_element_3__set__(o,
v);
34148 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34153 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nNodes_elementBoundary(PyObject *o, CYTHON_UNUSED
void *x) {
34154 return __pyx_pw_10cmeshTools_5CMesh_22nNodes_elementBoundary_1__get__(o);
34157 static int __pyx_setprop_10cmeshTools_5CMesh_nNodes_elementBoundary(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34159 return __pyx_pw_10cmeshTools_5CMesh_22nNodes_elementBoundary_3__set__(o,
v);
34162 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34167 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nElementBoundaries_element(PyObject *o, CYTHON_UNUSED
void *x) {
34168 return __pyx_pw_10cmeshTools_5CMesh_26nElementBoundaries_element_1__get__(o);
34171 static int __pyx_setprop_10cmeshTools_5CMesh_nElementBoundaries_element(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34173 return __pyx_pw_10cmeshTools_5CMesh_26nElementBoundaries_element_3__set__(o,
v);
34176 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34181 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nElementBoundaries_global(PyObject *o, CYTHON_UNUSED
void *x) {
34182 return __pyx_pw_10cmeshTools_5CMesh_25nElementBoundaries_global_1__get__(o);
34185 static int __pyx_setprop_10cmeshTools_5CMesh_nElementBoundaries_global(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34187 return __pyx_pw_10cmeshTools_5CMesh_25nElementBoundaries_global_3__set__(o,
v);
34190 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34195 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nInteriorElementBoundaries_global(PyObject *o, CYTHON_UNUSED
void *x) {
34196 return __pyx_pw_10cmeshTools_5CMesh_33nInteriorElementBoundaries_global_1__get__(o);
34199 static int __pyx_setprop_10cmeshTools_5CMesh_nInteriorElementBoundaries_global(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34201 return __pyx_pw_10cmeshTools_5CMesh_33nInteriorElementBoundaries_global_3__set__(o,
v);
34204 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34209 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nExteriorElementBoundaries_global(PyObject *o, CYTHON_UNUSED
void *x) {
34210 return __pyx_pw_10cmeshTools_5CMesh_33nExteriorElementBoundaries_global_1__get__(o);
34213 static int __pyx_setprop_10cmeshTools_5CMesh_nExteriorElementBoundaries_global(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34215 return __pyx_pw_10cmeshTools_5CMesh_33nExteriorElementBoundaries_global_3__set__(o,
v);
34218 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34223 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_max_nElements_node(PyObject *o, CYTHON_UNUSED
void *x) {
34224 return __pyx_pw_10cmeshTools_5CMesh_18max_nElements_node_1__get__(o);
34227 static int __pyx_setprop_10cmeshTools_5CMesh_max_nElements_node(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34229 return __pyx_pw_10cmeshTools_5CMesh_18max_nElements_node_3__set__(o,
v);
34232 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34237 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nEdges_global(PyObject *o, CYTHON_UNUSED
void *x) {
34238 return __pyx_pw_10cmeshTools_5CMesh_13nEdges_global_1__get__(o);
34241 static int __pyx_setprop_10cmeshTools_5CMesh_nEdges_global(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34243 return __pyx_pw_10cmeshTools_5CMesh_13nEdges_global_3__set__(o,
v);
34246 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34251 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_max_nNodeNeighbors_node(PyObject *o, CYTHON_UNUSED
void *x) {
34252 return __pyx_pw_10cmeshTools_5CMesh_23max_nNodeNeighbors_node_1__get__(o);
34255 static int __pyx_setprop_10cmeshTools_5CMesh_max_nNodeNeighbors_node(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34257 return __pyx_pw_10cmeshTools_5CMesh_23max_nNodeNeighbors_node_3__set__(o,
v);
34260 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34265 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_elementNodesArray(PyObject *o, CYTHON_UNUSED
void *x) {
34266 return __pyx_pw_10cmeshTools_5CMesh_17elementNodesArray_1__get__(o);
34269 static int __pyx_setprop_10cmeshTools_5CMesh_elementNodesArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34271 return __pyx_pw_10cmeshTools_5CMesh_17elementNodesArray_3__set__(o,
v);
34274 return __pyx_pw_10cmeshTools_5CMesh_17elementNodesArray_5__del__(o);
34278 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nodeElementsArray(PyObject *o, CYTHON_UNUSED
void *x) {
34279 return __pyx_pw_10cmeshTools_5CMesh_17nodeElementsArray_1__get__(o);
34282 static int __pyx_setprop_10cmeshTools_5CMesh_nodeElementsArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34284 return __pyx_pw_10cmeshTools_5CMesh_17nodeElementsArray_3__set__(o,
v);
34287 return __pyx_pw_10cmeshTools_5CMesh_17nodeElementsArray_5__del__(o);
34291 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nodeElementOffsets(PyObject *o, CYTHON_UNUSED
void *x) {
34292 return __pyx_pw_10cmeshTools_5CMesh_18nodeElementOffsets_1__get__(o);
34295 static int __pyx_setprop_10cmeshTools_5CMesh_nodeElementOffsets(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34297 return __pyx_pw_10cmeshTools_5CMesh_18nodeElementOffsets_3__set__(o,
v);
34300 return __pyx_pw_10cmeshTools_5CMesh_18nodeElementOffsets_5__del__(o);
34304 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_elementNeighborsArray(PyObject *o, CYTHON_UNUSED
void *x) {
34305 return __pyx_pw_10cmeshTools_5CMesh_21elementNeighborsArray_1__get__(o);
34308 static int __pyx_setprop_10cmeshTools_5CMesh_elementNeighborsArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34310 return __pyx_pw_10cmeshTools_5CMesh_21elementNeighborsArray_3__set__(o,
v);
34313 return __pyx_pw_10cmeshTools_5CMesh_21elementNeighborsArray_5__del__(o);
34317 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_elementBoundariesArray(PyObject *o, CYTHON_UNUSED
void *x) {
34318 return __pyx_pw_10cmeshTools_5CMesh_22elementBoundariesArray_1__get__(o);
34321 static int __pyx_setprop_10cmeshTools_5CMesh_elementBoundariesArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34323 return __pyx_pw_10cmeshTools_5CMesh_22elementBoundariesArray_3__set__(o,
v);
34326 return __pyx_pw_10cmeshTools_5CMesh_22elementBoundariesArray_5__del__(o);
34330 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_elementBoundaryNodesArray(PyObject *o, CYTHON_UNUSED
void *x) {
34331 return __pyx_pw_10cmeshTools_5CMesh_25elementBoundaryNodesArray_1__get__(o);
34334 static int __pyx_setprop_10cmeshTools_5CMesh_elementBoundaryNodesArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34336 return __pyx_pw_10cmeshTools_5CMesh_25elementBoundaryNodesArray_3__set__(o,
v);
34339 return __pyx_pw_10cmeshTools_5CMesh_25elementBoundaryNodesArray_5__del__(o);
34343 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_elementBoundaryElementsArray(PyObject *o, CYTHON_UNUSED
void *x) {
34344 return __pyx_pw_10cmeshTools_5CMesh_28elementBoundaryElementsArray_1__get__(o);
34347 static int __pyx_setprop_10cmeshTools_5CMesh_elementBoundaryElementsArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34349 return __pyx_pw_10cmeshTools_5CMesh_28elementBoundaryElementsArray_3__set__(o,
v);
34352 return __pyx_pw_10cmeshTools_5CMesh_28elementBoundaryElementsArray_5__del__(o);
34356 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_elementBoundaryLocalElementBoundariesArray(PyObject *o, CYTHON_UNUSED
void *x) {
34357 return __pyx_pw_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray_1__get__(o);
34360 static int __pyx_setprop_10cmeshTools_5CMesh_elementBoundaryLocalElementBoundariesArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34362 return __pyx_pw_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray_3__set__(o,
v);
34365 return __pyx_pw_10cmeshTools_5CMesh_42elementBoundaryLocalElementBoundariesArray_5__del__(o);
34369 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_interiorElementBoundariesArray(PyObject *o, CYTHON_UNUSED
void *x) {
34370 return __pyx_pw_10cmeshTools_5CMesh_30interiorElementBoundariesArray_1__get__(o);
34373 static int __pyx_setprop_10cmeshTools_5CMesh_interiorElementBoundariesArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34375 return __pyx_pw_10cmeshTools_5CMesh_30interiorElementBoundariesArray_3__set__(o,
v);
34378 return __pyx_pw_10cmeshTools_5CMesh_30interiorElementBoundariesArray_5__del__(o);
34382 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_exteriorElementBoundariesArray(PyObject *o, CYTHON_UNUSED
void *x) {
34383 return __pyx_pw_10cmeshTools_5CMesh_30exteriorElementBoundariesArray_1__get__(o);
34386 static int __pyx_setprop_10cmeshTools_5CMesh_exteriorElementBoundariesArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34388 return __pyx_pw_10cmeshTools_5CMesh_30exteriorElementBoundariesArray_3__set__(o,
v);
34391 return __pyx_pw_10cmeshTools_5CMesh_30exteriorElementBoundariesArray_5__del__(o);
34395 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_edgeNodesArray(PyObject *o, CYTHON_UNUSED
void *x) {
34396 return __pyx_pw_10cmeshTools_5CMesh_14edgeNodesArray_1__get__(o);
34399 static int __pyx_setprop_10cmeshTools_5CMesh_edgeNodesArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34401 return __pyx_pw_10cmeshTools_5CMesh_14edgeNodesArray_3__set__(o,
v);
34404 return __pyx_pw_10cmeshTools_5CMesh_14edgeNodesArray_5__del__(o);
34408 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nodeStarArray(PyObject *o, CYTHON_UNUSED
void *x) {
34409 return __pyx_pw_10cmeshTools_5CMesh_13nodeStarArray_1__get__(o);
34412 static int __pyx_setprop_10cmeshTools_5CMesh_nodeStarArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34414 return __pyx_pw_10cmeshTools_5CMesh_13nodeStarArray_3__set__(o,
v);
34417 return __pyx_pw_10cmeshTools_5CMesh_13nodeStarArray_5__del__(o);
34421 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nodeStarOffsets(PyObject *o, CYTHON_UNUSED
void *x) {
34422 return __pyx_pw_10cmeshTools_5CMesh_15nodeStarOffsets_1__get__(o);
34425 static int __pyx_setprop_10cmeshTools_5CMesh_nodeStarOffsets(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34427 return __pyx_pw_10cmeshTools_5CMesh_15nodeStarOffsets_3__set__(o,
v);
34430 return __pyx_pw_10cmeshTools_5CMesh_15nodeStarOffsets_5__del__(o);
34434 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_elementMaterialTypes(PyObject *o, CYTHON_UNUSED
void *x) {
34435 return __pyx_pw_10cmeshTools_5CMesh_20elementMaterialTypes_1__get__(o);
34438 static int __pyx_setprop_10cmeshTools_5CMesh_elementMaterialTypes(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34440 return __pyx_pw_10cmeshTools_5CMesh_20elementMaterialTypes_3__set__(o,
v);
34443 return __pyx_pw_10cmeshTools_5CMesh_20elementMaterialTypes_5__del__(o);
34447 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_elementBoundaryMaterialTypes(PyObject *o, CYTHON_UNUSED
void *x) {
34448 return __pyx_pw_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes_1__get__(o);
34451 static int __pyx_setprop_10cmeshTools_5CMesh_elementBoundaryMaterialTypes(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34453 return __pyx_pw_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes_3__set__(o,
v);
34456 return __pyx_pw_10cmeshTools_5CMesh_28elementBoundaryMaterialTypes_5__del__(o);
34460 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nodeMaterialTypes(PyObject *o, CYTHON_UNUSED
void *x) {
34461 return __pyx_pw_10cmeshTools_5CMesh_17nodeMaterialTypes_1__get__(o);
34464 static int __pyx_setprop_10cmeshTools_5CMesh_nodeMaterialTypes(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34466 return __pyx_pw_10cmeshTools_5CMesh_17nodeMaterialTypes_3__set__(o,
v);
34469 return __pyx_pw_10cmeshTools_5CMesh_17nodeMaterialTypes_5__del__(o);
34473 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nodeArray(PyObject *o, CYTHON_UNUSED
void *x) {
34474 return __pyx_pw_10cmeshTools_5CMesh_9nodeArray_1__get__(o);
34477 static int __pyx_setprop_10cmeshTools_5CMesh_nodeArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34479 return __pyx_pw_10cmeshTools_5CMesh_9nodeArray_3__set__(o,
v);
34482 return __pyx_pw_10cmeshTools_5CMesh_9nodeArray_5__del__(o);
34486 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nx(PyObject *o, CYTHON_UNUSED
void *x) {
34487 return __pyx_pw_10cmeshTools_5CMesh_2nx_1__get__(o);
34490 static int __pyx_setprop_10cmeshTools_5CMesh_nx(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34492 return __pyx_pw_10cmeshTools_5CMesh_2nx_3__set__(o,
v);
34495 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34500 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_ny(PyObject *o, CYTHON_UNUSED
void *x) {
34501 return __pyx_pw_10cmeshTools_5CMesh_2ny_1__get__(o);
34504 static int __pyx_setprop_10cmeshTools_5CMesh_ny(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34506 return __pyx_pw_10cmeshTools_5CMesh_2ny_3__set__(o,
v);
34509 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34514 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nz(PyObject *o, CYTHON_UNUSED
void *x) {
34515 return __pyx_pw_10cmeshTools_5CMesh_2nz_1__get__(o);
34518 static int __pyx_setprop_10cmeshTools_5CMesh_nz(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34520 return __pyx_pw_10cmeshTools_5CMesh_2nz_3__set__(o,
v);
34523 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34528 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_px(PyObject *o, CYTHON_UNUSED
void *x) {
34529 return __pyx_pw_10cmeshTools_5CMesh_2px_1__get__(o);
34532 static int __pyx_setprop_10cmeshTools_5CMesh_px(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34534 return __pyx_pw_10cmeshTools_5CMesh_2px_3__set__(o,
v);
34537 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34542 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_py(PyObject *o, CYTHON_UNUSED
void *x) {
34543 return __pyx_pw_10cmeshTools_5CMesh_2py_1__get__(o);
34546 static int __pyx_setprop_10cmeshTools_5CMesh_py(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34548 return __pyx_pw_10cmeshTools_5CMesh_2py_3__set__(o,
v);
34551 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34556 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_pz(PyObject *o, CYTHON_UNUSED
void *x) {
34557 return __pyx_pw_10cmeshTools_5CMesh_2pz_1__get__(o);
34560 static int __pyx_setprop_10cmeshTools_5CMesh_pz(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34562 return __pyx_pw_10cmeshTools_5CMesh_2pz_3__set__(o,
v);
34565 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34570 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_elementIJK(PyObject *o, CYTHON_UNUSED
void *x) {
34571 return __pyx_pw_10cmeshTools_5CMesh_10elementIJK_1__get__(o);
34574 static int __pyx_setprop_10cmeshTools_5CMesh_elementIJK(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34576 return __pyx_pw_10cmeshTools_5CMesh_10elementIJK_3__set__(o,
v);
34579 return __pyx_pw_10cmeshTools_5CMesh_10elementIJK_5__del__(o);
34583 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_weights(PyObject *o, CYTHON_UNUSED
void *x) {
34584 return __pyx_pw_10cmeshTools_5CMesh_7weights_1__get__(o);
34587 static int __pyx_setprop_10cmeshTools_5CMesh_weights(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34589 return __pyx_pw_10cmeshTools_5CMesh_7weights_3__set__(o,
v);
34592 return __pyx_pw_10cmeshTools_5CMesh_7weights_5__del__(o);
34596 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_U_KNOT(PyObject *o, CYTHON_UNUSED
void *x) {
34597 return __pyx_pw_10cmeshTools_5CMesh_6U_KNOT_1__get__(o);
34600 static int __pyx_setprop_10cmeshTools_5CMesh_U_KNOT(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34602 return __pyx_pw_10cmeshTools_5CMesh_6U_KNOT_3__set__(o,
v);
34605 return __pyx_pw_10cmeshTools_5CMesh_6U_KNOT_5__del__(o);
34609 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_V_KNOT(PyObject *o, CYTHON_UNUSED
void *x) {
34610 return __pyx_pw_10cmeshTools_5CMesh_6V_KNOT_1__get__(o);
34613 static int __pyx_setprop_10cmeshTools_5CMesh_V_KNOT(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34615 return __pyx_pw_10cmeshTools_5CMesh_6V_KNOT_3__set__(o,
v);
34618 return __pyx_pw_10cmeshTools_5CMesh_6V_KNOT_5__del__(o);
34622 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_W_KNOT(PyObject *o, CYTHON_UNUSED
void *x) {
34623 return __pyx_pw_10cmeshTools_5CMesh_6W_KNOT_1__get__(o);
34626 static int __pyx_setprop_10cmeshTools_5CMesh_W_KNOT(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34628 return __pyx_pw_10cmeshTools_5CMesh_6W_KNOT_3__set__(o,
v);
34631 return __pyx_pw_10cmeshTools_5CMesh_6W_KNOT_5__del__(o);
34635 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_elementDiametersArray(PyObject *o, CYTHON_UNUSED
void *x) {
34636 return __pyx_pw_10cmeshTools_5CMesh_21elementDiametersArray_1__get__(o);
34639 static int __pyx_setprop_10cmeshTools_5CMesh_elementDiametersArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34641 return __pyx_pw_10cmeshTools_5CMesh_21elementDiametersArray_3__set__(o,
v);
34644 return __pyx_pw_10cmeshTools_5CMesh_21elementDiametersArray_5__del__(o);
34648 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_elementInnerDiametersArray(PyObject *o, CYTHON_UNUSED
void *x) {
34649 return __pyx_pw_10cmeshTools_5CMesh_26elementInnerDiametersArray_1__get__(o);
34652 static int __pyx_setprop_10cmeshTools_5CMesh_elementInnerDiametersArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34654 return __pyx_pw_10cmeshTools_5CMesh_26elementInnerDiametersArray_3__set__(o,
v);
34657 return __pyx_pw_10cmeshTools_5CMesh_26elementInnerDiametersArray_5__del__(o);
34661 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_elementBoundaryDiametersArray(PyObject *o, CYTHON_UNUSED
void *x) {
34662 return __pyx_pw_10cmeshTools_5CMesh_29elementBoundaryDiametersArray_1__get__(o);
34665 static int __pyx_setprop_10cmeshTools_5CMesh_elementBoundaryDiametersArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34667 return __pyx_pw_10cmeshTools_5CMesh_29elementBoundaryDiametersArray_3__set__(o,
v);
34670 return __pyx_pw_10cmeshTools_5CMesh_29elementBoundaryDiametersArray_5__del__(o);
34674 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_elementBarycentersArray(PyObject *o, CYTHON_UNUSED
void *x) {
34675 return __pyx_pw_10cmeshTools_5CMesh_23elementBarycentersArray_1__get__(o);
34678 static int __pyx_setprop_10cmeshTools_5CMesh_elementBarycentersArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34680 return __pyx_pw_10cmeshTools_5CMesh_23elementBarycentersArray_3__set__(o,
v);
34683 return __pyx_pw_10cmeshTools_5CMesh_23elementBarycentersArray_5__del__(o);
34687 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_elementBoundaryBarycentersArray(PyObject *o, CYTHON_UNUSED
void *x) {
34688 return __pyx_pw_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray_1__get__(o);
34691 static int __pyx_setprop_10cmeshTools_5CMesh_elementBoundaryBarycentersArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34693 return __pyx_pw_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray_3__set__(o,
v);
34696 return __pyx_pw_10cmeshTools_5CMesh_31elementBoundaryBarycentersArray_5__del__(o);
34700 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nodeDiametersArray(PyObject *o, CYTHON_UNUSED
void *x) {
34701 return __pyx_pw_10cmeshTools_5CMesh_18nodeDiametersArray_1__get__(o);
34704 static int __pyx_setprop_10cmeshTools_5CMesh_nodeDiametersArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34706 return __pyx_pw_10cmeshTools_5CMesh_18nodeDiametersArray_3__set__(o,
v);
34709 return __pyx_pw_10cmeshTools_5CMesh_18nodeDiametersArray_5__del__(o);
34713 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_nodeSupportArray(PyObject *o, CYTHON_UNUSED
void *x) {
34714 return __pyx_pw_10cmeshTools_5CMesh_16nodeSupportArray_1__get__(o);
34717 static int __pyx_setprop_10cmeshTools_5CMesh_nodeSupportArray(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34719 return __pyx_pw_10cmeshTools_5CMesh_16nodeSupportArray_3__set__(o,
v);
34722 return __pyx_pw_10cmeshTools_5CMesh_16nodeSupportArray_5__del__(o);
34726 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_h(PyObject *o, CYTHON_UNUSED
void *x) {
34727 return __pyx_pw_10cmeshTools_5CMesh_1h_1__get__(o);
34730 static int __pyx_setprop_10cmeshTools_5CMesh_h(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34732 return __pyx_pw_10cmeshTools_5CMesh_1h_3__set__(o,
v);
34735 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34740 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_hMin(PyObject *o, CYTHON_UNUSED
void *x) {
34741 return __pyx_pw_10cmeshTools_5CMesh_4hMin_1__get__(o);
34744 static int __pyx_setprop_10cmeshTools_5CMesh_hMin(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34746 return __pyx_pw_10cmeshTools_5CMesh_4hMin_3__set__(o,
v);
34749 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34754 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_sigmaMax(PyObject *o, CYTHON_UNUSED
void *x) {
34755 return __pyx_pw_10cmeshTools_5CMesh_8sigmaMax_1__get__(o);
34758 static int __pyx_setprop_10cmeshTools_5CMesh_sigmaMax(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34760 return __pyx_pw_10cmeshTools_5CMesh_8sigmaMax_3__set__(o,
v);
34763 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34768 static PyObject *__pyx_getprop_10cmeshTools_5CMesh_volume(PyObject *o, CYTHON_UNUSED
void *x) {
34769 return __pyx_pw_10cmeshTools_5CMesh_6volume_1__get__(o);
34772 static int __pyx_setprop_10cmeshTools_5CMesh_volume(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34774 return __pyx_pw_10cmeshTools_5CMesh_6volume_3__set__(o,
v);
34777 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34782 static PyMethodDef __pyx_methods_10cmeshTools_CMesh[] = {
34783 {
"buildPythonMeshInterface", (PyCFunction)__pyx_pw_10cmeshTools_5CMesh_3buildPythonMeshInterface, METH_NOARGS, 0},
34784 {
"buildPythonMeshInterfaceNoArrays", (PyCFunction)__pyx_pw_10cmeshTools_5CMesh_5buildPythonMeshInterfaceNoArrays, METH_NOARGS, 0},
34785 {
"__reduce_cython__", (PyCFunction)__pyx_pw_10cmeshTools_5CMesh_7__reduce_cython__, METH_NOARGS, 0},
34786 {
"__setstate_cython__", (PyCFunction)__pyx_pw_10cmeshTools_5CMesh_9__setstate_cython__, METH_O, 0},
34790 static struct PyGetSetDef __pyx_getsets_10cmeshTools_CMesh[] = {
34791 {(
char *)
"nElements_global", __pyx_getprop_10cmeshTools_5CMesh_nElements_global, __pyx_setprop_10cmeshTools_5CMesh_nElements_global, (
char *)0, 0},
34792 {(
char *)
"nNodes_global", __pyx_getprop_10cmeshTools_5CMesh_nNodes_global, __pyx_setprop_10cmeshTools_5CMesh_nNodes_global, (
char *)0, 0},
34793 {(
char *)
"nNodes_element", __pyx_getprop_10cmeshTools_5CMesh_nNodes_element, __pyx_setprop_10cmeshTools_5CMesh_nNodes_element, (
char *)0, 0},
34794 {(
char *)
"nNodes_elementBoundary", __pyx_getprop_10cmeshTools_5CMesh_nNodes_elementBoundary, __pyx_setprop_10cmeshTools_5CMesh_nNodes_elementBoundary, (
char *)0, 0},
34795 {(
char *)
"nElementBoundaries_element", __pyx_getprop_10cmeshTools_5CMesh_nElementBoundaries_element, __pyx_setprop_10cmeshTools_5CMesh_nElementBoundaries_element, (
char *)0, 0},
34796 {(
char *)
"nElementBoundaries_global", __pyx_getprop_10cmeshTools_5CMesh_nElementBoundaries_global, __pyx_setprop_10cmeshTools_5CMesh_nElementBoundaries_global, (
char *)0, 0},
34797 {(
char *)
"nInteriorElementBoundaries_global", __pyx_getprop_10cmeshTools_5CMesh_nInteriorElementBoundaries_global, __pyx_setprop_10cmeshTools_5CMesh_nInteriorElementBoundaries_global, (
char *)0, 0},
34798 {(
char *)
"nExteriorElementBoundaries_global", __pyx_getprop_10cmeshTools_5CMesh_nExteriorElementBoundaries_global, __pyx_setprop_10cmeshTools_5CMesh_nExteriorElementBoundaries_global, (
char *)0, 0},
34799 {(
char *)
"max_nElements_node", __pyx_getprop_10cmeshTools_5CMesh_max_nElements_node, __pyx_setprop_10cmeshTools_5CMesh_max_nElements_node, (
char *)0, 0},
34800 {(
char *)
"nEdges_global", __pyx_getprop_10cmeshTools_5CMesh_nEdges_global, __pyx_setprop_10cmeshTools_5CMesh_nEdges_global, (
char *)0, 0},
34801 {(
char *)
"max_nNodeNeighbors_node", __pyx_getprop_10cmeshTools_5CMesh_max_nNodeNeighbors_node, __pyx_setprop_10cmeshTools_5CMesh_max_nNodeNeighbors_node, (
char *)0, 0},
34802 {(
char *)
"elementNodesArray", __pyx_getprop_10cmeshTools_5CMesh_elementNodesArray, __pyx_setprop_10cmeshTools_5CMesh_elementNodesArray, (
char *)0, 0},
34803 {(
char *)
"nodeElementsArray", __pyx_getprop_10cmeshTools_5CMesh_nodeElementsArray, __pyx_setprop_10cmeshTools_5CMesh_nodeElementsArray, (
char *)0, 0},
34804 {(
char *)
"nodeElementOffsets", __pyx_getprop_10cmeshTools_5CMesh_nodeElementOffsets, __pyx_setprop_10cmeshTools_5CMesh_nodeElementOffsets, (
char *)0, 0},
34805 {(
char *)
"elementNeighborsArray", __pyx_getprop_10cmeshTools_5CMesh_elementNeighborsArray, __pyx_setprop_10cmeshTools_5CMesh_elementNeighborsArray, (
char *)0, 0},
34806 {(
char *)
"elementBoundariesArray", __pyx_getprop_10cmeshTools_5CMesh_elementBoundariesArray, __pyx_setprop_10cmeshTools_5CMesh_elementBoundariesArray, (
char *)0, 0},
34807 {(
char *)
"elementBoundaryNodesArray", __pyx_getprop_10cmeshTools_5CMesh_elementBoundaryNodesArray, __pyx_setprop_10cmeshTools_5CMesh_elementBoundaryNodesArray, (
char *)0, 0},
34808 {(
char *)
"elementBoundaryElementsArray", __pyx_getprop_10cmeshTools_5CMesh_elementBoundaryElementsArray, __pyx_setprop_10cmeshTools_5CMesh_elementBoundaryElementsArray, (
char *)0, 0},
34809 {(
char *)
"elementBoundaryLocalElementBoundariesArray", __pyx_getprop_10cmeshTools_5CMesh_elementBoundaryLocalElementBoundariesArray, __pyx_setprop_10cmeshTools_5CMesh_elementBoundaryLocalElementBoundariesArray, (
char *)0, 0},
34810 {(
char *)
"interiorElementBoundariesArray", __pyx_getprop_10cmeshTools_5CMesh_interiorElementBoundariesArray, __pyx_setprop_10cmeshTools_5CMesh_interiorElementBoundariesArray, (
char *)0, 0},
34811 {(
char *)
"exteriorElementBoundariesArray", __pyx_getprop_10cmeshTools_5CMesh_exteriorElementBoundariesArray, __pyx_setprop_10cmeshTools_5CMesh_exteriorElementBoundariesArray, (
char *)0, 0},
34812 {(
char *)
"edgeNodesArray", __pyx_getprop_10cmeshTools_5CMesh_edgeNodesArray, __pyx_setprop_10cmeshTools_5CMesh_edgeNodesArray, (
char *)0, 0},
34813 {(
char *)
"nodeStarArray", __pyx_getprop_10cmeshTools_5CMesh_nodeStarArray, __pyx_setprop_10cmeshTools_5CMesh_nodeStarArray, (
char *)0, 0},
34814 {(
char *)
"nodeStarOffsets", __pyx_getprop_10cmeshTools_5CMesh_nodeStarOffsets, __pyx_setprop_10cmeshTools_5CMesh_nodeStarOffsets, (
char *)0, 0},
34815 {(
char *)
"elementMaterialTypes", __pyx_getprop_10cmeshTools_5CMesh_elementMaterialTypes, __pyx_setprop_10cmeshTools_5CMesh_elementMaterialTypes, (
char *)0, 0},
34816 {(
char *)
"elementBoundaryMaterialTypes", __pyx_getprop_10cmeshTools_5CMesh_elementBoundaryMaterialTypes, __pyx_setprop_10cmeshTools_5CMesh_elementBoundaryMaterialTypes, (
char *)0, 0},
34817 {(
char *)
"nodeMaterialTypes", __pyx_getprop_10cmeshTools_5CMesh_nodeMaterialTypes, __pyx_setprop_10cmeshTools_5CMesh_nodeMaterialTypes, (
char *)0, 0},
34818 {(
char *)
"nodeArray", __pyx_getprop_10cmeshTools_5CMesh_nodeArray, __pyx_setprop_10cmeshTools_5CMesh_nodeArray, (
char *)0, 0},
34819 {(
char *)
"nx", __pyx_getprop_10cmeshTools_5CMesh_nx, __pyx_setprop_10cmeshTools_5CMesh_nx, (
char *)0, 0},
34820 {(
char *)
"ny", __pyx_getprop_10cmeshTools_5CMesh_ny, __pyx_setprop_10cmeshTools_5CMesh_ny, (
char *)0, 0},
34821 {(
char *)
"nz", __pyx_getprop_10cmeshTools_5CMesh_nz, __pyx_setprop_10cmeshTools_5CMesh_nz, (
char *)0, 0},
34822 {(
char *)
"px", __pyx_getprop_10cmeshTools_5CMesh_px, __pyx_setprop_10cmeshTools_5CMesh_px, (
char *)0, 0},
34823 {(
char *)
"py", __pyx_getprop_10cmeshTools_5CMesh_py, __pyx_setprop_10cmeshTools_5CMesh_py, (
char *)0, 0},
34824 {(
char *)
"pz", __pyx_getprop_10cmeshTools_5CMesh_pz, __pyx_setprop_10cmeshTools_5CMesh_pz, (
char *)0, 0},
34825 {(
char *)
"elementIJK", __pyx_getprop_10cmeshTools_5CMesh_elementIJK, __pyx_setprop_10cmeshTools_5CMesh_elementIJK, (
char *)0, 0},
34826 {(
char *)
"weights", __pyx_getprop_10cmeshTools_5CMesh_weights, __pyx_setprop_10cmeshTools_5CMesh_weights, (
char *)0, 0},
34827 {(
char *)
"U_KNOT", __pyx_getprop_10cmeshTools_5CMesh_U_KNOT, __pyx_setprop_10cmeshTools_5CMesh_U_KNOT, (
char *)0, 0},
34828 {(
char *)
"V_KNOT", __pyx_getprop_10cmeshTools_5CMesh_V_KNOT, __pyx_setprop_10cmeshTools_5CMesh_V_KNOT, (
char *)0, 0},
34829 {(
char *)
"W_KNOT", __pyx_getprop_10cmeshTools_5CMesh_W_KNOT, __pyx_setprop_10cmeshTools_5CMesh_W_KNOT, (
char *)0, 0},
34830 {(
char *)
"elementDiametersArray", __pyx_getprop_10cmeshTools_5CMesh_elementDiametersArray, __pyx_setprop_10cmeshTools_5CMesh_elementDiametersArray, (
char *)0, 0},
34831 {(
char *)
"elementInnerDiametersArray", __pyx_getprop_10cmeshTools_5CMesh_elementInnerDiametersArray, __pyx_setprop_10cmeshTools_5CMesh_elementInnerDiametersArray, (
char *)0, 0},
34832 {(
char *)
"elementBoundaryDiametersArray", __pyx_getprop_10cmeshTools_5CMesh_elementBoundaryDiametersArray, __pyx_setprop_10cmeshTools_5CMesh_elementBoundaryDiametersArray, (
char *)0, 0},
34833 {(
char *)
"elementBarycentersArray", __pyx_getprop_10cmeshTools_5CMesh_elementBarycentersArray, __pyx_setprop_10cmeshTools_5CMesh_elementBarycentersArray, (
char *)0, 0},
34834 {(
char *)
"elementBoundaryBarycentersArray", __pyx_getprop_10cmeshTools_5CMesh_elementBoundaryBarycentersArray, __pyx_setprop_10cmeshTools_5CMesh_elementBoundaryBarycentersArray, (
char *)0, 0},
34835 {(
char *)
"nodeDiametersArray", __pyx_getprop_10cmeshTools_5CMesh_nodeDiametersArray, __pyx_setprop_10cmeshTools_5CMesh_nodeDiametersArray, (
char *)0, 0},
34836 {(
char *)
"nodeSupportArray", __pyx_getprop_10cmeshTools_5CMesh_nodeSupportArray, __pyx_setprop_10cmeshTools_5CMesh_nodeSupportArray, (
char *)0, 0},
34837 {(
char *)
"h", __pyx_getprop_10cmeshTools_5CMesh_h, __pyx_setprop_10cmeshTools_5CMesh_h, (
char *)0, 0},
34838 {(
char *)
"hMin", __pyx_getprop_10cmeshTools_5CMesh_hMin, __pyx_setprop_10cmeshTools_5CMesh_hMin, (
char *)0, 0},
34839 {(
char *)
"sigmaMax", __pyx_getprop_10cmeshTools_5CMesh_sigmaMax, __pyx_setprop_10cmeshTools_5CMesh_sigmaMax, (
char *)0, 0},
34840 {(
char *)
"volume", __pyx_getprop_10cmeshTools_5CMesh_volume, __pyx_setprop_10cmeshTools_5CMesh_volume, (
char *)0, 0},
34844 static PyTypeObject __pyx_type_10cmeshTools_CMesh = {
34845 PyVarObject_HEAD_INIT(0, 0)
34846 "cmeshTools.CMesh",
34847 sizeof(
struct __pyx_obj_10cmeshTools_CMesh),
34849 __pyx_tp_dealloc_10cmeshTools_CMesh,
34853 #if PY_MAJOR_VERSION < 3
34856 #if PY_MAJOR_VERSION >= 3
34869 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
34871 __pyx_tp_traverse_10cmeshTools_CMesh,
34872 __pyx_tp_clear_10cmeshTools_CMesh,
34877 __pyx_methods_10cmeshTools_CMesh,
34879 __pyx_getsets_10cmeshTools_CMesh,
34885 __pyx_pw_10cmeshTools_5CMesh_1__init__,
34887 __pyx_tp_new_10cmeshTools_CMesh,
34897 #if PY_VERSION_HEX >= 0x030400a1
34902 static PyObject *__pyx_tp_new_10cmeshTools_CMultilevelMesh(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
34903 struct __pyx_obj_10cmeshTools_CMultilevelMesh *p;
34905 if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
34906 o = (*t->tp_alloc)(t, 0);
34908 o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
34910 if (unlikely(!o))
return 0;
34911 p = ((
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)o);
34912 p->cmeshList = ((PyObject*)Py_None); Py_INCREF(Py_None);
34913 p->elementParentsArrayList = ((PyObject*)Py_None); Py_INCREF(Py_None);
34914 p->elementChildrenArrayList = ((PyObject*)Py_None); Py_INCREF(Py_None);
34915 p->elementChildrenOffsetsList = ((PyObject*)Py_None); Py_INCREF(Py_None);
34919 static void __pyx_tp_dealloc_10cmeshTools_CMultilevelMesh(PyObject *o) {
34920 struct __pyx_obj_10cmeshTools_CMultilevelMesh *p = (
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)o;
34921 #if CYTHON_USE_TP_FINALIZE
34922 if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
34923 if (PyObject_CallFinalizerFromDealloc(o))
return;
34926 PyObject_GC_UnTrack(o);
34927 Py_CLEAR(p->cmeshList);
34928 Py_CLEAR(p->elementParentsArrayList);
34929 Py_CLEAR(p->elementChildrenArrayList);
34930 Py_CLEAR(p->elementChildrenOffsetsList);
34931 (*Py_TYPE(o)->tp_free)(o);
34934 static int __pyx_tp_traverse_10cmeshTools_CMultilevelMesh(PyObject *o, visitproc
v,
void *a) {
34936 struct __pyx_obj_10cmeshTools_CMultilevelMesh *p = (
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)o;
34937 if (p->cmeshList) {
34938 e = (*v)(p->cmeshList, a);
if (e)
return e;
34940 if (p->elementParentsArrayList) {
34941 e = (*v)(p->elementParentsArrayList, a);
if (e)
return e;
34943 if (p->elementChildrenArrayList) {
34944 e = (*v)(p->elementChildrenArrayList, a);
if (e)
return e;
34946 if (p->elementChildrenOffsetsList) {
34947 e = (*v)(p->elementChildrenOffsetsList, a);
if (e)
return e;
34952 static int __pyx_tp_clear_10cmeshTools_CMultilevelMesh(PyObject *o) {
34954 struct __pyx_obj_10cmeshTools_CMultilevelMesh *p = (
struct __pyx_obj_10cmeshTools_CMultilevelMesh *)o;
34955 tmp = ((PyObject*)p->cmeshList);
34956 p->cmeshList = ((PyObject*)Py_None); Py_INCREF(Py_None);
34958 tmp = ((PyObject*)p->elementParentsArrayList);
34959 p->elementParentsArrayList = ((PyObject*)Py_None); Py_INCREF(Py_None);
34961 tmp = ((PyObject*)p->elementChildrenArrayList);
34962 p->elementChildrenArrayList = ((PyObject*)Py_None); Py_INCREF(Py_None);
34964 tmp = ((PyObject*)p->elementChildrenOffsetsList);
34965 p->elementChildrenOffsetsList = ((PyObject*)Py_None); Py_INCREF(Py_None);
34970 static PyObject *__pyx_getprop_10cmeshTools_15CMultilevelMesh_nLevels(PyObject *o, CYTHON_UNUSED
void *x) {
34971 return __pyx_pw_10cmeshTools_15CMultilevelMesh_7nLevels_1__get__(o);
34974 static int __pyx_setprop_10cmeshTools_15CMultilevelMesh_nLevels(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34976 return __pyx_pw_10cmeshTools_15CMultilevelMesh_7nLevels_3__set__(o,
v);
34979 PyErr_SetString(PyExc_NotImplementedError,
"__del__");
34984 static PyObject *__pyx_getprop_10cmeshTools_15CMultilevelMesh_cmeshList(PyObject *o, CYTHON_UNUSED
void *x) {
34985 return __pyx_pw_10cmeshTools_15CMultilevelMesh_9cmeshList_1__get__(o);
34988 static int __pyx_setprop_10cmeshTools_15CMultilevelMesh_cmeshList(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
34990 return __pyx_pw_10cmeshTools_15CMultilevelMesh_9cmeshList_3__set__(o,
v);
34993 return __pyx_pw_10cmeshTools_15CMultilevelMesh_9cmeshList_5__del__(o);
34997 static PyObject *__pyx_getprop_10cmeshTools_15CMultilevelMesh_elementParentsArrayList(PyObject *o, CYTHON_UNUSED
void *x) {
34998 return __pyx_pw_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList_1__get__(o);
35001 static int __pyx_setprop_10cmeshTools_15CMultilevelMesh_elementParentsArrayList(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
35003 return __pyx_pw_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList_3__set__(o,
v);
35006 return __pyx_pw_10cmeshTools_15CMultilevelMesh_23elementParentsArrayList_5__del__(o);
35010 static PyObject *__pyx_getprop_10cmeshTools_15CMultilevelMesh_elementChildrenArrayList(PyObject *o, CYTHON_UNUSED
void *x) {
35011 return __pyx_pw_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList_1__get__(o);
35014 static int __pyx_setprop_10cmeshTools_15CMultilevelMesh_elementChildrenArrayList(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
35016 return __pyx_pw_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList_3__set__(o,
v);
35019 return __pyx_pw_10cmeshTools_15CMultilevelMesh_24elementChildrenArrayList_5__del__(o);
35023 static PyObject *__pyx_getprop_10cmeshTools_15CMultilevelMesh_elementChildrenOffsetsList(PyObject *o, CYTHON_UNUSED
void *x) {
35024 return __pyx_pw_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList_1__get__(o);
35027 static int __pyx_setprop_10cmeshTools_15CMultilevelMesh_elementChildrenOffsetsList(PyObject *o, PyObject *
v, CYTHON_UNUSED
void *x) {
35029 return __pyx_pw_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList_3__set__(o,
v);
35032 return __pyx_pw_10cmeshTools_15CMultilevelMesh_26elementChildrenOffsetsList_5__del__(o);
35036 static PyMethodDef __pyx_methods_10cmeshTools_CMultilevelMesh[] = {
35037 {
"buildPythonMultilevelMeshInterface", (PyCFunction)__pyx_pw_10cmeshTools_15CMultilevelMesh_3buildPythonMultilevelMeshInterface, METH_NOARGS, 0},
35038 {
"__reduce_cython__", (PyCFunction)__pyx_pw_10cmeshTools_15CMultilevelMesh_5__reduce_cython__, METH_NOARGS, 0},
35039 {
"__setstate_cython__", (PyCFunction)__pyx_pw_10cmeshTools_15CMultilevelMesh_7__setstate_cython__, METH_O, 0},
35043 static struct PyGetSetDef __pyx_getsets_10cmeshTools_CMultilevelMesh[] = {
35044 {(
char *)
"nLevels", __pyx_getprop_10cmeshTools_15CMultilevelMesh_nLevels, __pyx_setprop_10cmeshTools_15CMultilevelMesh_nLevels, (
char *)0, 0},
35045 {(
char *)
"cmeshList", __pyx_getprop_10cmeshTools_15CMultilevelMesh_cmeshList, __pyx_setprop_10cmeshTools_15CMultilevelMesh_cmeshList, (
char *)0, 0},
35046 {(
char *)
"elementParentsArrayList", __pyx_getprop_10cmeshTools_15CMultilevelMesh_elementParentsArrayList, __pyx_setprop_10cmeshTools_15CMultilevelMesh_elementParentsArrayList, (
char *)0, 0},
35047 {(
char *)
"elementChildrenArrayList", __pyx_getprop_10cmeshTools_15CMultilevelMesh_elementChildrenArrayList, __pyx_setprop_10cmeshTools_15CMultilevelMesh_elementChildrenArrayList, (
char *)0, 0},
35048 {(
char *)
"elementChildrenOffsetsList", __pyx_getprop_10cmeshTools_15CMultilevelMesh_elementChildrenOffsetsList, __pyx_setprop_10cmeshTools_15CMultilevelMesh_elementChildrenOffsetsList, (
char *)0, 0},
35052 static PyTypeObject __pyx_type_10cmeshTools_CMultilevelMesh = {
35053 PyVarObject_HEAD_INIT(0, 0)
35054 "cmeshTools.CMultilevelMesh",
35055 sizeof(
struct __pyx_obj_10cmeshTools_CMultilevelMesh),
35057 __pyx_tp_dealloc_10cmeshTools_CMultilevelMesh,
35061 #if PY_MAJOR_VERSION < 3
35064 #if PY_MAJOR_VERSION >= 3
35077 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
35079 __pyx_tp_traverse_10cmeshTools_CMultilevelMesh,
35080 __pyx_tp_clear_10cmeshTools_CMultilevelMesh,
35085 __pyx_methods_10cmeshTools_CMultilevelMesh,
35087 __pyx_getsets_10cmeshTools_CMultilevelMesh,
35093 __pyx_pw_10cmeshTools_15CMultilevelMesh_1__init__,
35095 __pyx_tp_new_10cmeshTools_CMultilevelMesh,
35105 #if PY_VERSION_HEX >= 0x030400a1
35109 static struct __pyx_vtabstruct_array __pyx_vtable_array;
35111 static PyObject *__pyx_tp_new_array(PyTypeObject *t, PyObject *a, PyObject *k) {
35112 struct __pyx_array_obj *p;
35114 if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
35115 o = (*t->tp_alloc)(t, 0);
35117 o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
35119 if (unlikely(!o))
return 0;
35120 p = ((
struct __pyx_array_obj *)o);
35121 p->__pyx_vtab = __pyx_vtabptr_array;
35122 p->mode = ((PyObject*)Py_None); Py_INCREF(Py_None);
35123 p->_format = ((PyObject*)Py_None); Py_INCREF(Py_None);
35124 if (unlikely(__pyx_array___cinit__(o, a, k) < 0))
goto bad;
35127 Py_DECREF(o); o = 0;
35131 static void __pyx_tp_dealloc_array(PyObject *o) {
35132 struct __pyx_array_obj *p = (
struct __pyx_array_obj *)o;
35133 #if CYTHON_USE_TP_FINALIZE
35134 if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
35135 if (PyObject_CallFinalizerFromDealloc(o))
return;
35139 PyObject *etype, *eval, *etb;
35140 PyErr_Fetch(&etype, &eval, &etb);
35142 __pyx_array___dealloc__(o);
35144 PyErr_Restore(etype, eval, etb);
35147 Py_CLEAR(p->_format);
35148 (*Py_TYPE(o)->tp_free)(o);
35150 static PyObject *__pyx_sq_item_array(PyObject *o, Py_ssize_t i) {
35152 PyObject *x = PyInt_FromSsize_t(i);
if(!x)
return 0;
35153 r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
35158 static int __pyx_mp_ass_subscript_array(PyObject *o, PyObject *i, PyObject *
v) {
35160 return __pyx_array___setitem__(o, i,
v);
35163 PyErr_Format(PyExc_NotImplementedError,
35164 "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name);
35169 static PyObject *__pyx_tp_getattro_array(PyObject *o, PyObject *
n) {
35170 PyObject *
v = __Pyx_PyObject_GenericGetAttr(o,
n);
35171 if (!
v && PyErr_ExceptionMatches(PyExc_AttributeError)) {
35173 v = __pyx_array___getattr__(o,
n);
35178 static PyObject *__pyx_getprop___pyx_array_memview(PyObject *o, CYTHON_UNUSED
void *x) {
35179 return __pyx_pw_15View_dot_MemoryView_5array_7memview_1__get__(o);
35182 static PyMethodDef __pyx_methods_array[] = {
35183 {
"__getattr__", (PyCFunction)__pyx_array___getattr__, METH_O|METH_COEXIST, 0},
35184 {
"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_array_1__reduce_cython__, METH_NOARGS, 0},
35185 {
"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_array_3__setstate_cython__, METH_O, 0},
35189 static struct PyGetSetDef __pyx_getsets_array[] = {
35190 {(
char *)
"memview", __pyx_getprop___pyx_array_memview, 0, (
char *)0, 0},
35194 static PySequenceMethods __pyx_tp_as_sequence_array = {
35195 __pyx_array___len__,
35198 __pyx_sq_item_array,
35207 static PyMappingMethods __pyx_tp_as_mapping_array = {
35208 __pyx_array___len__,
35209 __pyx_array___getitem__,
35210 __pyx_mp_ass_subscript_array,
35213 static PyBufferProcs __pyx_tp_as_buffer_array = {
35214 #if PY_MAJOR_VERSION < 3
35217 #if PY_MAJOR_VERSION < 3
35220 #if PY_MAJOR_VERSION < 3
35223 #if PY_MAJOR_VERSION < 3
35226 __pyx_array_getbuffer,
35230 static PyTypeObject __pyx_type___pyx_array = {
35231 PyVarObject_HEAD_INIT(0, 0)
35232 "cmeshTools.array",
35233 sizeof(
struct __pyx_array_obj),
35235 __pyx_tp_dealloc_array,
35239 #if PY_MAJOR_VERSION < 3
35242 #if PY_MAJOR_VERSION >= 3
35247 &__pyx_tp_as_sequence_array,
35248 &__pyx_tp_as_mapping_array,
35252 __pyx_tp_getattro_array,
35254 &__pyx_tp_as_buffer_array,
35255 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE,
35263 __pyx_methods_array,
35265 __pyx_getsets_array,
35273 __pyx_tp_new_array,
35283 #if PY_VERSION_HEX >= 0x030400a1
35288 static PyObject *__pyx_tp_new_Enum(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
35289 struct __pyx_MemviewEnum_obj *p;
35291 if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
35292 o = (*t->tp_alloc)(t, 0);
35294 o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
35296 if (unlikely(!o))
return 0;
35297 p = ((
struct __pyx_MemviewEnum_obj *)o);
35298 p->name = Py_None; Py_INCREF(Py_None);
35302 static void __pyx_tp_dealloc_Enum(PyObject *o) {
35303 struct __pyx_MemviewEnum_obj *p = (
struct __pyx_MemviewEnum_obj *)o;
35304 #if CYTHON_USE_TP_FINALIZE
35305 if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
35306 if (PyObject_CallFinalizerFromDealloc(o))
return;
35309 PyObject_GC_UnTrack(o);
35311 (*Py_TYPE(o)->tp_free)(o);
35314 static int __pyx_tp_traverse_Enum(PyObject *o, visitproc
v,
void *a) {
35316 struct __pyx_MemviewEnum_obj *p = (
struct __pyx_MemviewEnum_obj *)o;
35318 e = (*v)(p->name, a);
if (e)
return e;
35323 static int __pyx_tp_clear_Enum(PyObject *o) {
35325 struct __pyx_MemviewEnum_obj *p = (
struct __pyx_MemviewEnum_obj *)o;
35326 tmp = ((PyObject*)p->name);
35327 p->name = Py_None; Py_INCREF(Py_None);
35332 static PyMethodDef __pyx_methods_Enum[] = {
35333 {
"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_MemviewEnum_1__reduce_cython__, METH_NOARGS, 0},
35334 {
"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_MemviewEnum_3__setstate_cython__, METH_O, 0},
35338 static PyTypeObject __pyx_type___pyx_MemviewEnum = {
35339 PyVarObject_HEAD_INIT(0, 0)
35341 sizeof(
struct __pyx_MemviewEnum_obj),
35343 __pyx_tp_dealloc_Enum,
35347 #if PY_MAJOR_VERSION < 3
35350 #if PY_MAJOR_VERSION >= 3
35353 __pyx_MemviewEnum___repr__,
35363 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
35365 __pyx_tp_traverse_Enum,
35366 __pyx_tp_clear_Enum,
35371 __pyx_methods_Enum,
35379 __pyx_MemviewEnum___init__,
35391 #if PY_VERSION_HEX >= 0x030400a1
35395 static struct __pyx_vtabstruct_memoryview __pyx_vtable_memoryview;
35397 static PyObject *__pyx_tp_new_memoryview(PyTypeObject *t, PyObject *a, PyObject *k) {
35398 struct __pyx_memoryview_obj *p;
35400 if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
35401 o = (*t->tp_alloc)(t, 0);
35403 o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
35405 if (unlikely(!o))
return 0;
35406 p = ((
struct __pyx_memoryview_obj *)o);
35407 p->__pyx_vtab = __pyx_vtabptr_memoryview;
35408 p->obj = Py_None; Py_INCREF(Py_None);
35409 p->_size = Py_None; Py_INCREF(Py_None);
35410 p->_array_interface = Py_None; Py_INCREF(Py_None);
35411 p->view.obj = NULL;
35412 if (unlikely(__pyx_memoryview___cinit__(o, a, k) < 0))
goto bad;
35415 Py_DECREF(o); o = 0;
35419 static void __pyx_tp_dealloc_memoryview(PyObject *o) {
35420 struct __pyx_memoryview_obj *p = (
struct __pyx_memoryview_obj *)o;
35421 #if CYTHON_USE_TP_FINALIZE
35422 if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
35423 if (PyObject_CallFinalizerFromDealloc(o))
return;
35426 PyObject_GC_UnTrack(o);
35428 PyObject *etype, *eval, *etb;
35429 PyErr_Fetch(&etype, &eval, &etb);
35431 __pyx_memoryview___dealloc__(o);
35433 PyErr_Restore(etype, eval, etb);
35436 Py_CLEAR(p->_size);
35437 Py_CLEAR(p->_array_interface);
35438 (*Py_TYPE(o)->tp_free)(o);
35441 static int __pyx_tp_traverse_memoryview(PyObject *o, visitproc
v,
void *a) {
35443 struct __pyx_memoryview_obj *p = (
struct __pyx_memoryview_obj *)o;
35445 e = (*v)(p->obj, a);
if (e)
return e;
35448 e = (*v)(p->_size, a);
if (e)
return e;
35450 if (p->_array_interface) {
35451 e = (*v)(p->_array_interface, a);
if (e)
return e;
35454 e = (*v)(p->view.obj, a);
if (e)
return e;
35459 static int __pyx_tp_clear_memoryview(PyObject *o) {
35461 struct __pyx_memoryview_obj *p = (
struct __pyx_memoryview_obj *)o;
35462 tmp = ((PyObject*)p->obj);
35463 p->obj = Py_None; Py_INCREF(Py_None);
35465 tmp = ((PyObject*)p->_size);
35466 p->_size = Py_None; Py_INCREF(Py_None);
35468 tmp = ((PyObject*)p->_array_interface);
35469 p->_array_interface = Py_None; Py_INCREF(Py_None);
35471 Py_CLEAR(p->view.obj);
35474 static PyObject *__pyx_sq_item_memoryview(PyObject *o, Py_ssize_t i) {
35476 PyObject *x = PyInt_FromSsize_t(i);
if(!x)
return 0;
35477 r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
35482 static int __pyx_mp_ass_subscript_memoryview(PyObject *o, PyObject *i, PyObject *
v) {
35484 return __pyx_memoryview___setitem__(o, i,
v);
35487 PyErr_Format(PyExc_NotImplementedError,
35488 "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name);
35493 static PyObject *__pyx_getprop___pyx_memoryview_T(PyObject *o, CYTHON_UNUSED
void *x) {
35494 return __pyx_pw_15View_dot_MemoryView_10memoryview_1T_1__get__(o);
35497 static PyObject *__pyx_getprop___pyx_memoryview_base(PyObject *o, CYTHON_UNUSED
void *x) {
35498 return __pyx_pw_15View_dot_MemoryView_10memoryview_4base_1__get__(o);
35501 static PyObject *__pyx_getprop___pyx_memoryview_shape(PyObject *o, CYTHON_UNUSED
void *x) {
35502 return __pyx_pw_15View_dot_MemoryView_10memoryview_5shape_1__get__(o);
35505 static PyObject *__pyx_getprop___pyx_memoryview_strides(PyObject *o, CYTHON_UNUSED
void *x) {
35506 return __pyx_pw_15View_dot_MemoryView_10memoryview_7strides_1__get__(o);
35509 static PyObject *__pyx_getprop___pyx_memoryview_suboffsets(PyObject *o, CYTHON_UNUSED
void *x) {
35510 return __pyx_pw_15View_dot_MemoryView_10memoryview_10suboffsets_1__get__(o);
35513 static PyObject *__pyx_getprop___pyx_memoryview_ndim(PyObject *o, CYTHON_UNUSED
void *x) {
35514 return __pyx_pw_15View_dot_MemoryView_10memoryview_4ndim_1__get__(o);
35517 static PyObject *__pyx_getprop___pyx_memoryview_itemsize(PyObject *o, CYTHON_UNUSED
void *x) {
35518 return __pyx_pw_15View_dot_MemoryView_10memoryview_8itemsize_1__get__(o);
35521 static PyObject *__pyx_getprop___pyx_memoryview_nbytes(PyObject *o, CYTHON_UNUSED
void *x) {
35522 return __pyx_pw_15View_dot_MemoryView_10memoryview_6nbytes_1__get__(o);
35525 static PyObject *__pyx_getprop___pyx_memoryview_size(PyObject *o, CYTHON_UNUSED
void *x) {
35526 return __pyx_pw_15View_dot_MemoryView_10memoryview_4size_1__get__(o);
35529 static PyMethodDef __pyx_methods_memoryview[] = {
35530 {
"is_c_contig", (PyCFunction)__pyx_memoryview_is_c_contig, METH_NOARGS, 0},
35531 {
"is_f_contig", (PyCFunction)__pyx_memoryview_is_f_contig, METH_NOARGS, 0},
35532 {
"copy", (PyCFunction)__pyx_memoryview_copy, METH_NOARGS, 0},
35533 {
"copy_fortran", (PyCFunction)__pyx_memoryview_copy_fortran, METH_NOARGS, 0},
35534 {
"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_memoryview_1__reduce_cython__, METH_NOARGS, 0},
35535 {
"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_memoryview_3__setstate_cython__, METH_O, 0},
35539 static struct PyGetSetDef __pyx_getsets_memoryview[] = {
35540 {(
char *)
"T", __pyx_getprop___pyx_memoryview_T, 0, (
char *)0, 0},
35541 {(
char *)
"base", __pyx_getprop___pyx_memoryview_base, 0, (
char *)0, 0},
35542 {(
char *)
"shape", __pyx_getprop___pyx_memoryview_shape, 0, (
char *)0, 0},
35543 {(
char *)
"strides", __pyx_getprop___pyx_memoryview_strides, 0, (
char *)0, 0},
35544 {(
char *)
"suboffsets", __pyx_getprop___pyx_memoryview_suboffsets, 0, (
char *)0, 0},
35545 {(
char *)
"ndim", __pyx_getprop___pyx_memoryview_ndim, 0, (
char *)0, 0},
35546 {(
char *)
"itemsize", __pyx_getprop___pyx_memoryview_itemsize, 0, (
char *)0, 0},
35547 {(
char *)
"nbytes", __pyx_getprop___pyx_memoryview_nbytes, 0, (
char *)0, 0},
35548 {(
char *)
"size", __pyx_getprop___pyx_memoryview_size, 0, (
char *)0, 0},
35552 static PySequenceMethods __pyx_tp_as_sequence_memoryview = {
35553 __pyx_memoryview___len__,
35556 __pyx_sq_item_memoryview,
35565 static PyMappingMethods __pyx_tp_as_mapping_memoryview = {
35566 __pyx_memoryview___len__,
35567 __pyx_memoryview___getitem__,
35568 __pyx_mp_ass_subscript_memoryview,
35571 static PyBufferProcs __pyx_tp_as_buffer_memoryview = {
35572 #if PY_MAJOR_VERSION < 3
35575 #if PY_MAJOR_VERSION < 3
35578 #if PY_MAJOR_VERSION < 3
35581 #if PY_MAJOR_VERSION < 3
35584 __pyx_memoryview_getbuffer,
35588 static PyTypeObject __pyx_type___pyx_memoryview = {
35589 PyVarObject_HEAD_INIT(0, 0)
35590 "cmeshTools.memoryview",
35591 sizeof(
struct __pyx_memoryview_obj),
35593 __pyx_tp_dealloc_memoryview,
35597 #if PY_MAJOR_VERSION < 3
35600 #if PY_MAJOR_VERSION >= 3
35603 __pyx_memoryview___repr__,
35605 &__pyx_tp_as_sequence_memoryview,
35606 &__pyx_tp_as_mapping_memoryview,
35609 __pyx_memoryview___str__,
35612 &__pyx_tp_as_buffer_memoryview,
35613 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
35615 __pyx_tp_traverse_memoryview,
35616 __pyx_tp_clear_memoryview,
35621 __pyx_methods_memoryview,
35623 __pyx_getsets_memoryview,
35631 __pyx_tp_new_memoryview,
35641 #if PY_VERSION_HEX >= 0x030400a1
35645 static struct __pyx_vtabstruct__memoryviewslice __pyx_vtable__memoryviewslice;
35647 static PyObject *__pyx_tp_new__memoryviewslice(PyTypeObject *t, PyObject *a, PyObject *k) {
35648 struct __pyx_memoryviewslice_obj *p;
35649 PyObject *o = __pyx_tp_new_memoryview(t, a, k);
35650 if (unlikely(!o))
return 0;
35651 p = ((
struct __pyx_memoryviewslice_obj *)o);
35652 p->__pyx_base.__pyx_vtab = (
struct __pyx_vtabstruct_memoryview*)__pyx_vtabptr__memoryviewslice;
35653 p->from_object = Py_None; Py_INCREF(Py_None);
35654 p->from_slice.memview = NULL;
35658 static void __pyx_tp_dealloc__memoryviewslice(PyObject *o) {
35659 struct __pyx_memoryviewslice_obj *p = (
struct __pyx_memoryviewslice_obj *)o;
35660 #if CYTHON_USE_TP_FINALIZE
35661 if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
35662 if (PyObject_CallFinalizerFromDealloc(o))
return;
35665 PyObject_GC_UnTrack(o);
35667 PyObject *etype, *eval, *etb;
35668 PyErr_Fetch(&etype, &eval, &etb);
35670 __pyx_memoryviewslice___dealloc__(o);
35672 PyErr_Restore(etype, eval, etb);
35674 Py_CLEAR(p->from_object);
35675 PyObject_GC_Track(o);
35676 __pyx_tp_dealloc_memoryview(o);
35679 static int __pyx_tp_traverse__memoryviewslice(PyObject *o, visitproc
v,
void *a) {
35681 struct __pyx_memoryviewslice_obj *p = (
struct __pyx_memoryviewslice_obj *)o;
35682 e = __pyx_tp_traverse_memoryview(o,
v, a);
if (e)
return e;
35683 if (p->from_object) {
35684 e = (*v)(p->from_object, a);
if (e)
return e;
35689 static int __pyx_tp_clear__memoryviewslice(PyObject *o) {
35691 struct __pyx_memoryviewslice_obj *p = (
struct __pyx_memoryviewslice_obj *)o;
35692 __pyx_tp_clear_memoryview(o);
35693 tmp = ((PyObject*)p->from_object);
35694 p->from_object = Py_None; Py_INCREF(Py_None);
35696 __PYX_XDEC_MEMVIEW(&p->from_slice, 1);
35700 static PyObject *__pyx_getprop___pyx_memoryviewslice_base(PyObject *o, CYTHON_UNUSED
void *x) {
35701 return __pyx_pw_15View_dot_MemoryView_16_memoryviewslice_4base_1__get__(o);
35704 static PyMethodDef __pyx_methods__memoryviewslice[] = {
35705 {
"__reduce_cython__", (PyCFunction)__pyx_pw___pyx_memoryviewslice_1__reduce_cython__, METH_NOARGS, 0},
35706 {
"__setstate_cython__", (PyCFunction)__pyx_pw___pyx_memoryviewslice_3__setstate_cython__, METH_O, 0},
35710 static struct PyGetSetDef __pyx_getsets__memoryviewslice[] = {
35711 {(
char *)
"base", __pyx_getprop___pyx_memoryviewslice_base, 0, (
char *)0, 0},
35715 static PyTypeObject __pyx_type___pyx_memoryviewslice = {
35716 PyVarObject_HEAD_INIT(0, 0)
35717 "cmeshTools._memoryviewslice",
35718 sizeof(
struct __pyx_memoryviewslice_obj),
35720 __pyx_tp_dealloc__memoryviewslice,
35724 #if PY_MAJOR_VERSION < 3
35727 #if PY_MAJOR_VERSION >= 3
35730 #if CYTHON_COMPILING_IN_PYPY
35731 __pyx_memoryview___repr__,
35740 #if CYTHON_COMPILING_IN_PYPY
35741 __pyx_memoryview___str__,
35748 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
35749 "Internal class for passing memoryview slices to Python",
35750 __pyx_tp_traverse__memoryviewslice,
35751 __pyx_tp_clear__memoryviewslice,
35756 __pyx_methods__memoryviewslice,
35758 __pyx_getsets__memoryviewslice,
35766 __pyx_tp_new__memoryviewslice,
35776 #if PY_VERSION_HEX >= 0x030400a1
35781 static PyMethodDef __pyx_methods[] = {
35782 {
"generateTetrahedralMeshFromRectangularGrid", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_7generateTetrahedralMeshFromRectangularGrid, METH_VARARGS|METH_KEYWORDS, 0},
35783 {
"cmeshToolsComputeGeometricInfo_tetrahedron", (PyCFunction)__pyx_pw_10cmeshTools_9cmeshToolsComputeGeometricInfo_tetrahedron, METH_O, 0},
35784 {
"generateFromTriangleFiles", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_11generateFromTriangleFiles, METH_VARARGS|METH_KEYWORDS, 0},
35785 {
"writeTriangleFiles", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_13writeTriangleFiles, METH_VARARGS|METH_KEYWORDS, 0},
35786 {
"generateFromTetgenFiles", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_15generateFromTetgenFiles, METH_VARARGS|METH_KEYWORDS, 0},
35787 {
"generateFromTetgenFilesParallel", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_17generateFromTetgenFilesParallel, METH_VARARGS|METH_KEYWORDS, 0},
35788 {
"writeTetgenFiles", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_19writeTetgenFiles, METH_VARARGS|METH_KEYWORDS, 0},
35789 {
"write3dmFiles", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_21write3dmFiles, METH_VARARGS|METH_KEYWORDS, 0},
35790 {
"write2dmFiles", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_23write2dmFiles, METH_VARARGS|METH_KEYWORDS, 0},
35791 {
"generateFromHexFile", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_25generateFromHexFile, METH_VARARGS|METH_KEYWORDS, 0},
35792 {
"generateFrom3DMFile", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_27generateFrom3DMFile, METH_VARARGS|METH_KEYWORDS, 0},
35793 {
"generateFrom2DMFile", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_29generateFrom2DMFile, METH_VARARGS|METH_KEYWORDS, 0},
35794 {
"computeGeometricInfo_tetrahedron", (PyCFunction)__pyx_pw_10cmeshTools_31computeGeometricInfo_tetrahedron, METH_O, 0},
35795 {
"allocateGeometricInfo_tetrahedron", (PyCFunction)__pyx_pw_10cmeshTools_33allocateGeometricInfo_tetrahedron, METH_O, 0},
35796 {
"allocateNodeAndElementNodeDataStructures", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_35allocateNodeAndElementNodeDataStructures, METH_VARARGS|METH_KEYWORDS, 0},
35797 {
"constructElementBoundaryElementsArray", (PyCFunction)__pyx_pw_10cmeshTools_37constructElementBoundaryElementsArray, METH_O, 0},
35798 {
"generateTriangularMeshFromRectangularGrid", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_39generateTriangularMeshFromRectangularGrid, METH_VARARGS|METH_KEYWORDS, 0},
35799 {
"generateHexahedralMeshFromRectangularGrid", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_41generateHexahedralMeshFromRectangularGrid, METH_VARARGS|METH_KEYWORDS, 0},
35800 {
"generateQuadrilateralMeshFromRectangularGrid", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_43generateQuadrilateralMeshFromRectangularGrid, METH_VARARGS|METH_KEYWORDS, 0},
35801 {
"computeGeometricInfo_triangle", (PyCFunction)__pyx_pw_10cmeshTools_45computeGeometricInfo_triangle, METH_O, 0},
35802 {
"allocateGeometricInfo_triangle", (PyCFunction)__pyx_pw_10cmeshTools_47allocateGeometricInfo_triangle, METH_O, 0},
35803 {
"generateEdgeMeshFromRectangularGrid", (PyCFunction)(
void*)(PyCFunctionWithKeywords)__pyx_pw_10cmeshTools_49generateEdgeMeshFromRectangularGrid, METH_VARARGS|METH_KEYWORDS, 0},
35804 {
"computeGeometricInfo_edge", (PyCFunction)__pyx_pw_10cmeshTools_51computeGeometricInfo_edge, METH_O, 0},
35805 {
"allocateGeometricInfo_edge", (PyCFunction)__pyx_pw_10cmeshTools_53allocateGeometricInfo_edge, METH_O, 0},
35806 {
"computeGeometricInfo_hexahedron", (PyCFunction)__pyx_pw_10cmeshTools_55computeGeometricInfo_hexahedron, METH_O, 0},
35807 {
"computeGeometricInfo_quadrilateral", (PyCFunction)__pyx_pw_10cmeshTools_57computeGeometricInfo_quadrilateral, METH_O, 0},
35808 {
"allocateGeometricInfo_hexahedron", (PyCFunction)__pyx_pw_10cmeshTools_59allocateGeometricInfo_hexahedron, METH_O, 0},
35809 {
"allocateGeometricInfo_quadrilateral", (PyCFunction)__pyx_pw_10cmeshTools_61allocateGeometricInfo_quadrilateral, METH_O, 0},
35810 {
"computeGeometricInfo_NURBS", (PyCFunction)__pyx_pw_10cmeshTools_63computeGeometricInfo_NURBS, METH_O, 0},
35811 {
"allocateGeometricInfo_NURBS", (PyCFunction)__pyx_pw_10cmeshTools_65allocateGeometricInfo_NURBS, METH_O, 0},
35815 #if PY_MAJOR_VERSION >= 3
35816 #if CYTHON_PEP489_MULTI_PHASE_INIT
35817 static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def);
35818 static int __pyx_pymod_exec_cmeshTools(PyObject* module);
35819 static PyModuleDef_Slot __pyx_moduledef_slots[] = {
35820 {Py_mod_create, (
void*)__pyx_pymod_create},
35821 {Py_mod_exec, (
void*)__pyx_pymod_exec_cmeshTools},
35826 static struct PyModuleDef __pyx_moduledef = {
35827 PyModuleDef_HEAD_INIT,
35830 #if CYTHON_PEP489_MULTI_PHASE_INIT
35836 #if CYTHON_PEP489_MULTI_PHASE_INIT
35837 __pyx_moduledef_slots,
35846 #ifndef CYTHON_SMALL_CODE
35847 #if defined(__clang__)
35848 #define CYTHON_SMALL_CODE
35849 #elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
35850 #define CYTHON_SMALL_CODE __attribute__((cold))
35852 #define CYTHON_SMALL_CODE
35856 static __Pyx_StringTabEntry __pyx_string_tab[] = {
35857 {&__pyx_n_s_ASCII, __pyx_k_ASCII,
sizeof(__pyx_k_ASCII), 0, 0, 1, 1},
35858 {&__pyx_kp_s_Buffer_view_does_not_expose_stri, __pyx_k_Buffer_view_does_not_expose_stri,
sizeof(__pyx_k_Buffer_view_does_not_expose_stri), 0, 0, 1, 0},
35859 {&__pyx_n_s_CMesh, __pyx_k_CMesh,
sizeof(__pyx_k_CMesh), 0, 0, 1, 1},
35860 {&__pyx_n_s_CMultilevelMesh, __pyx_k_CMultilevelMesh,
sizeof(__pyx_k_CMultilevelMesh), 0, 0, 1, 1},
35861 {&__pyx_kp_s_Can_only_create_a_buffer_that_is, __pyx_k_Can_only_create_a_buffer_that_is,
sizeof(__pyx_k_Can_only_create_a_buffer_that_is), 0, 0, 1, 0},
35862 {&__pyx_kp_s_Cannot_assign_to_read_only_memor, __pyx_k_Cannot_assign_to_read_only_memor,
sizeof(__pyx_k_Cannot_assign_to_read_only_memor), 0, 0, 1, 0},
35863 {&__pyx_kp_s_Cannot_create_writable_memory_vi, __pyx_k_Cannot_create_writable_memory_vi,
sizeof(__pyx_k_Cannot_create_writable_memory_vi), 0, 0, 1, 0},
35864 {&__pyx_kp_s_Cannot_index_with_type_s, __pyx_k_Cannot_index_with_type_s,
sizeof(__pyx_k_Cannot_index_with_type_s), 0, 0, 1, 0},
35865 {&__pyx_n_s_Comm, __pyx_k_Comm,
sizeof(__pyx_k_Comm), 0, 0, 1, 1},
35866 {&__pyx_n_s_Ellipsis, __pyx_k_Ellipsis,
sizeof(__pyx_k_Ellipsis), 0, 0, 1, 1},
35867 {&__pyx_kp_s_Empty_shape_tuple_for_cython_arr, __pyx_k_Empty_shape_tuple_for_cython_arr,
sizeof(__pyx_k_Empty_shape_tuple_for_cython_arr), 0, 0, 1, 0},
35868 {&__pyx_kp_u_Format_string_allocated_too_shor, __pyx_k_Format_string_allocated_too_shor,
sizeof(__pyx_k_Format_string_allocated_too_shor), 0, 1, 0, 0},
35869 {&__pyx_kp_u_Format_string_allocated_too_shor_2, __pyx_k_Format_string_allocated_too_shor_2,
sizeof(__pyx_k_Format_string_allocated_too_shor_2), 0, 1, 0, 0},
35870 {&__pyx_n_s_ImportError, __pyx_k_ImportError,
sizeof(__pyx_k_ImportError), 0, 0, 1, 1},
35871 {&__pyx_kp_s_Incompatible_checksums_s_vs_0xb0, __pyx_k_Incompatible_checksums_s_vs_0xb0,
sizeof(__pyx_k_Incompatible_checksums_s_vs_0xb0), 0, 0, 1, 0},
35872 {&__pyx_n_s_IndexError, __pyx_k_IndexError,
sizeof(__pyx_k_IndexError), 0, 0, 1, 1},
35873 {&__pyx_kp_s_Indirect_dimensions_not_supporte, __pyx_k_Indirect_dimensions_not_supporte,
sizeof(__pyx_k_Indirect_dimensions_not_supporte), 0, 0, 1, 0},
35874 {&__pyx_kp_s_Invalid_mode_expected_c_or_fortr, __pyx_k_Invalid_mode_expected_c_or_fortr,
sizeof(__pyx_k_Invalid_mode_expected_c_or_fortr), 0, 0, 1, 0},
35875 {&__pyx_kp_s_Invalid_shape_in_axis_d_d, __pyx_k_Invalid_shape_in_axis_d_d,
sizeof(__pyx_k_Invalid_shape_in_axis_d_d), 0, 0, 1, 0},
35876 {&__pyx_n_s_Lx, __pyx_k_Lx,
sizeof(__pyx_k_Lx), 0, 0, 1, 1},
35877 {&__pyx_n_s_Ly, __pyx_k_Ly,
sizeof(__pyx_k_Ly), 0, 0, 1, 1},
35878 {&__pyx_n_s_Lz, __pyx_k_Lz,
sizeof(__pyx_k_Lz), 0, 0, 1, 1},
35879 {&__pyx_n_s_MPI, __pyx_k_MPI,
sizeof(__pyx_k_MPI), 0, 0, 1, 1},
35880 {&__pyx_n_s_MemoryError, __pyx_k_MemoryError,
sizeof(__pyx_k_MemoryError), 0, 0, 1, 1},
35881 {&__pyx_kp_s_MemoryView_of_r_at_0x_x, __pyx_k_MemoryView_of_r_at_0x_x,
sizeof(__pyx_k_MemoryView_of_r_at_0x_x), 0, 0, 1, 0},
35882 {&__pyx_kp_s_MemoryView_of_r_object, __pyx_k_MemoryView_of_r_object,
sizeof(__pyx_k_MemoryView_of_r_object), 0, 0, 1, 0},
35883 {&__pyx_kp_u_Non_native_byte_order_not_suppor, __pyx_k_Non_native_byte_order_not_suppor,
sizeof(__pyx_k_Non_native_byte_order_not_suppor), 0, 1, 0, 0},
35884 {&__pyx_n_b_O, __pyx_k_O,
sizeof(__pyx_k_O), 0, 0, 0, 1},
35885 {&__pyx_kp_s_Out_of_bounds_on_buffer_access_a, __pyx_k_Out_of_bounds_on_buffer_access_a,
sizeof(__pyx_k_Out_of_bounds_on_buffer_access_a), 0, 0, 1, 0},
35886 {&__pyx_n_s_PickleError, __pyx_k_PickleError,
sizeof(__pyx_k_PickleError), 0, 0, 1, 1},
35887 {&__pyx_n_s_RuntimeError, __pyx_k_RuntimeError,
sizeof(__pyx_k_RuntimeError), 0, 0, 1, 1},
35888 {&__pyx_kp_b_T, __pyx_k_T,
sizeof(__pyx_k_T), 0, 0, 0, 0},
35889 {&__pyx_n_s_TypeError, __pyx_k_TypeError,
sizeof(__pyx_k_TypeError), 0, 0, 1, 1},
35890 {&__pyx_n_s_U_KNOT, __pyx_k_U_KNOT,
sizeof(__pyx_k_U_KNOT), 0, 0, 1, 1},
35891 {&__pyx_kp_s_Unable_to_convert_item_to_object, __pyx_k_Unable_to_convert_item_to_object,
sizeof(__pyx_k_Unable_to_convert_item_to_object), 0, 0, 1, 0},
35892 {&__pyx_n_s_V_KNOT, __pyx_k_V_KNOT,
sizeof(__pyx_k_V_KNOT), 0, 0, 1, 1},
35893 {&__pyx_n_s_ValueError, __pyx_k_ValueError,
sizeof(__pyx_k_ValueError), 0, 0, 1, 1},
35894 {&__pyx_n_s_View_MemoryView, __pyx_k_View_MemoryView,
sizeof(__pyx_k_View_MemoryView), 0, 0, 1, 1},
35895 {&__pyx_n_s_W_KNOT, __pyx_k_W_KNOT,
sizeof(__pyx_k_W_KNOT), 0, 0, 1, 1},
35896 {&__pyx_kp_b__31, __pyx_k__31,
sizeof(__pyx_k__31), 0, 0, 0, 0},
35897 {&__pyx_kp_b__32, __pyx_k__32,
sizeof(__pyx_k__32), 0, 0, 0, 0},
35898 {&__pyx_kp_b__33, __pyx_k__33,
sizeof(__pyx_k__33), 0, 0, 0, 0},
35899 {&__pyx_kp_b__34, __pyx_k__34,
sizeof(__pyx_k__34), 0, 0, 0, 0},
35900 {&__pyx_kp_u__35, __pyx_k__35,
sizeof(__pyx_k__35), 0, 1, 0, 0},
35901 {&__pyx_n_s_allocate_buffer, __pyx_k_allocate_buffer,
sizeof(__pyx_k_allocate_buffer), 0, 0, 1, 1},
35902 {&__pyx_n_s_asarray, __pyx_k_asarray,
sizeof(__pyx_k_asarray), 0, 0, 1, 1},
35903 {&__pyx_n_s_base, __pyx_k_base,
sizeof(__pyx_k_base), 0, 0, 1, 1},
35904 {&__pyx_n_s_buildPythonMeshInterface, __pyx_k_buildPythonMeshInterface,
sizeof(__pyx_k_buildPythonMeshInterface), 0, 0, 1, 1},
35905 {&__pyx_n_s_buildPythonMeshInterfaceNoArrays, __pyx_k_buildPythonMeshInterfaceNoArrays,
sizeof(__pyx_k_buildPythonMeshInterfaceNoArrays), 0, 0, 1, 1},
35906 {&__pyx_n_s_buildPythonMultilevelMeshInterfa, __pyx_k_buildPythonMultilevelMeshInterfa,
sizeof(__pyx_k_buildPythonMultilevelMeshInterfa), 0, 0, 1, 1},
35907 {&__pyx_n_s_c, __pyx_k_c,
sizeof(__pyx_k_c), 0, 0, 1, 1},
35908 {&__pyx_n_u_c, __pyx_k_c,
sizeof(__pyx_k_c), 0, 1, 0, 1},
35909 {&__pyx_n_s_class, __pyx_k_class,
sizeof(__pyx_k_class), 0, 0, 1, 1},
35910 {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback,
sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
35911 {&__pyx_n_s_cmesh, __pyx_k_cmesh,
sizeof(__pyx_k_cmesh), 0, 0, 1, 1},
35912 {&__pyx_n_s_cmeshList, __pyx_k_cmeshList,
sizeof(__pyx_k_cmeshList), 0, 0, 1, 1},
35913 {&__pyx_n_s_cmeshTools, __pyx_k_cmeshTools,
sizeof(__pyx_k_cmeshTools), 0, 0, 1, 1},
35914 {&__pyx_n_s_cmultilevelMesh, __pyx_k_cmultilevelMesh,
sizeof(__pyx_k_cmultilevelMesh), 0, 0, 1, 1},
35915 {&__pyx_kp_s_contiguous_and_direct, __pyx_k_contiguous_and_direct,
sizeof(__pyx_k_contiguous_and_direct), 0, 0, 1, 0},
35916 {&__pyx_kp_s_contiguous_and_indirect, __pyx_k_contiguous_and_indirect,
sizeof(__pyx_k_contiguous_and_indirect), 0, 0, 1, 0},
35917 {&__pyx_n_s_dict, __pyx_k_dict,
sizeof(__pyx_k_dict), 0, 0, 1, 1},
35918 {&__pyx_n_s_dtype, __pyx_k_dtype,
sizeof(__pyx_k_dtype), 0, 0, 1, 1},
35919 {&__pyx_n_s_dtype_is_object, __pyx_k_dtype_is_object,
sizeof(__pyx_k_dtype_is_object), 0, 0, 1, 1},
35920 {&__pyx_n_s_edgeNodesArray, __pyx_k_edgeNodesArray,
sizeof(__pyx_k_edgeNodesArray), 0, 0, 1, 1},
35921 {&__pyx_n_s_elementBarycentersArray, __pyx_k_elementBarycentersArray,
sizeof(__pyx_k_elementBarycentersArray), 0, 0, 1, 1},
35922 {&__pyx_n_s_elementBoundariesArray, __pyx_k_elementBoundariesArray,
sizeof(__pyx_k_elementBoundariesArray), 0, 0, 1, 1},
35923 {&__pyx_n_s_elementBoundaryBarycentersArray, __pyx_k_elementBoundaryBarycentersArray,
sizeof(__pyx_k_elementBoundaryBarycentersArray), 0, 0, 1, 1},
35924 {&__pyx_n_s_elementBoundaryDiametersArray, __pyx_k_elementBoundaryDiametersArray,
sizeof(__pyx_k_elementBoundaryDiametersArray), 0, 0, 1, 1},
35925 {&__pyx_n_s_elementBoundaryElementsArray, __pyx_k_elementBoundaryElementsArray,
sizeof(__pyx_k_elementBoundaryElementsArray), 0, 0, 1, 1},
35926 {&__pyx_n_s_elementBoundaryLocalElementBound, __pyx_k_elementBoundaryLocalElementBound,
sizeof(__pyx_k_elementBoundaryLocalElementBound), 0, 0, 1, 1},
35927 {&__pyx_n_s_elementBoundaryMaterialTypes, __pyx_k_elementBoundaryMaterialTypes,
sizeof(__pyx_k_elementBoundaryMaterialTypes), 0, 0, 1, 1},
35928 {&__pyx_n_s_elementBoundaryNodesArray, __pyx_k_elementBoundaryNodesArray,
sizeof(__pyx_k_elementBoundaryNodesArray), 0, 0, 1, 1},
35929 {&__pyx_n_s_elementChildrenArrayList, __pyx_k_elementChildrenArrayList,
sizeof(__pyx_k_elementChildrenArrayList), 0, 0, 1, 1},
35930 {&__pyx_n_s_elementChildrenOffsetsList, __pyx_k_elementChildrenOffsetsList,
sizeof(__pyx_k_elementChildrenOffsetsList), 0, 0, 1, 1},
35931 {&__pyx_n_s_elementDiametersArray, __pyx_k_elementDiametersArray,
sizeof(__pyx_k_elementDiametersArray), 0, 0, 1, 1},
35932 {&__pyx_n_s_elementIJK, __pyx_k_elementIJK,
sizeof(__pyx_k_elementIJK), 0, 0, 1, 1},
35933 {&__pyx_n_s_elementInnerDiametersArray, __pyx_k_elementInnerDiametersArray,
sizeof(__pyx_k_elementInnerDiametersArray), 0, 0, 1, 1},
35934 {&__pyx_n_s_elementMaterialTypes, __pyx_k_elementMaterialTypes,
sizeof(__pyx_k_elementMaterialTypes), 0, 0, 1, 1},
35935 {&__pyx_n_s_elementNeighborsArray, __pyx_k_elementNeighborsArray,
sizeof(__pyx_k_elementNeighborsArray), 0, 0, 1, 1},
35936 {&__pyx_n_s_elementNodesArray, __pyx_k_elementNodesArray,
sizeof(__pyx_k_elementNodesArray), 0, 0, 1, 1},
35937 {&__pyx_n_s_elementParentsArrayList, __pyx_k_elementParentsArrayList,
sizeof(__pyx_k_elementParentsArrayList), 0, 0, 1, 1},
35938 {&__pyx_n_s_elementTagArray, __pyx_k_elementTagArray,
sizeof(__pyx_k_elementTagArray), 0, 0, 1, 1},
35939 {&__pyx_n_s_empty, __pyx_k_empty,
sizeof(__pyx_k_empty), 0, 0, 1, 1},
35940 {&__pyx_n_s_encode, __pyx_k_encode,
sizeof(__pyx_k_encode), 0, 0, 1, 1},
35941 {&__pyx_n_s_end, __pyx_k_end,
sizeof(__pyx_k_end), 0, 0, 1, 1},
35942 {&__pyx_n_s_enumerate, __pyx_k_enumerate,
sizeof(__pyx_k_enumerate), 0, 0, 1, 1},
35943 {&__pyx_n_s_error, __pyx_k_error,
sizeof(__pyx_k_error), 0, 0, 1, 1},
35944 {&__pyx_n_s_exteriorElementBoundariesArray, __pyx_k_exteriorElementBoundariesArray,
sizeof(__pyx_k_exteriorElementBoundariesArray), 0, 0, 1, 1},
35945 {&__pyx_n_s_failed, __pyx_k_failed,
sizeof(__pyx_k_failed), 0, 0, 1, 1},
35946 {&__pyx_n_s_file, __pyx_k_file,
sizeof(__pyx_k_file), 0, 0, 1, 1},
35947 {&__pyx_n_s_filebase, __pyx_k_filebase,
sizeof(__pyx_k_filebase), 0, 0, 1, 1},
35948 {&__pyx_n_s_finestLevel, __pyx_k_finestLevel,
sizeof(__pyx_k_finestLevel), 0, 0, 1, 1},
35949 {&__pyx_n_s_flags, __pyx_k_flags,
sizeof(__pyx_k_flags), 0, 0, 1, 1},
35950 {&__pyx_n_s_format, __pyx_k_format,
sizeof(__pyx_k_format), 0, 0, 1, 1},
35951 {&__pyx_n_s_fortran, __pyx_k_fortran,
sizeof(__pyx_k_fortran), 0, 0, 1, 1},
35952 {&__pyx_n_u_fortran, __pyx_k_fortran,
sizeof(__pyx_k_fortran), 0, 1, 0, 1},
35953 {&__pyx_n_s_getstate, __pyx_k_getstate,
sizeof(__pyx_k_getstate), 0, 0, 1, 1},
35954 {&__pyx_kp_s_got_differing_extents_in_dimensi, __pyx_k_got_differing_extents_in_dimensi,
sizeof(__pyx_k_got_differing_extents_in_dimensi), 0, 0, 1, 0},
35955 {&__pyx_n_s_h, __pyx_k_h,
sizeof(__pyx_k_h), 0, 0, 1, 1},
35956 {&__pyx_n_s_hMin, __pyx_k_hMin,
sizeof(__pyx_k_hMin), 0, 0, 1, 1},
35957 {&__pyx_n_s_id, __pyx_k_id,
sizeof(__pyx_k_id), 0, 0, 1, 1},
35958 {&__pyx_n_s_import, __pyx_k_import,
sizeof(__pyx_k_import), 0, 0, 1, 1},
35959 {&__pyx_n_s_int32, __pyx_k_int32,
sizeof(__pyx_k_int32), 0, 0, 1, 1},
35960 {&__pyx_n_s_interiorElementBoundariesArray, __pyx_k_interiorElementBoundariesArray,
sizeof(__pyx_k_interiorElementBoundariesArray), 0, 0, 1, 1},
35961 {&__pyx_n_s_itemsize, __pyx_k_itemsize,
sizeof(__pyx_k_itemsize), 0, 0, 1, 1},
35962 {&__pyx_kp_s_itemsize_0_for_cython_array, __pyx_k_itemsize_0_for_cython_array,
sizeof(__pyx_k_itemsize_0_for_cython_array), 0, 0, 1, 0},
35963 {&__pyx_n_s_join, __pyx_k_join,
sizeof(__pyx_k_join), 0, 0, 1, 1},
35964 {&__pyx_n_s_locallyRefineMultilevelMesh, __pyx_k_locallyRefineMultilevelMesh,
sizeof(__pyx_k_locallyRefineMultilevelMesh), 0, 0, 1, 1},
35965 {&__pyx_kp_s_locallyRefine_nSpace_0_d_not_imp, __pyx_k_locallyRefine_nSpace_0_d_not_imp,
sizeof(__pyx_k_locallyRefine_nSpace_0_d_not_imp), 0, 0, 1, 0},
35966 {&__pyx_n_s_main, __pyx_k_main,
sizeof(__pyx_k_main), 0, 0, 1, 1},
35967 {&__pyx_n_s_max_nElements_node, __pyx_k_max_nElements_node,
sizeof(__pyx_k_max_nElements_node), 0, 0, 1, 1},
35968 {&__pyx_n_s_max_nNodeNeighbors_node, __pyx_k_max_nNodeNeighbors_node,
sizeof(__pyx_k_max_nNodeNeighbors_node), 0, 0, 1, 1},
35969 {&__pyx_n_s_memview, __pyx_k_memview,
sizeof(__pyx_k_memview), 0, 0, 1, 1},
35970 {&__pyx_n_s_mode, __pyx_k_mode,
sizeof(__pyx_k_mode), 0, 0, 1, 1},
35971 {&__pyx_n_s_mpi4py, __pyx_k_mpi4py,
sizeof(__pyx_k_mpi4py), 0, 0, 1, 1},
35972 {&__pyx_n_s_nEdges_global, __pyx_k_nEdges_global,
sizeof(__pyx_k_nEdges_global), 0, 0, 1, 1},
35973 {&__pyx_n_s_nElementBoundaries_element, __pyx_k_nElementBoundaries_element,
sizeof(__pyx_k_nElementBoundaries_element), 0, 0, 1, 1},
35974 {&__pyx_n_s_nElementBoundaries_global, __pyx_k_nElementBoundaries_global,
sizeof(__pyx_k_nElementBoundaries_global), 0, 0, 1, 1},
35975 {&__pyx_n_s_nElements_global, __pyx_k_nElements_global,
sizeof(__pyx_k_nElements_global), 0, 0, 1, 1},
35976 {&__pyx_n_s_nExteriorElementBoundaries_globa, __pyx_k_nExteriorElementBoundaries_globa,
sizeof(__pyx_k_nExteriorElementBoundaries_globa), 0, 0, 1, 1},
35977 {&__pyx_n_s_nInteriorElementBoundaries_globa, __pyx_k_nInteriorElementBoundaries_globa,
sizeof(__pyx_k_nInteriorElementBoundaries_globa), 0, 0, 1, 1},
35978 {&__pyx_n_s_nLevels, __pyx_k_nLevels,
sizeof(__pyx_k_nLevels), 0, 0, 1, 1},
35979 {&__pyx_n_s_nNodes_element, __pyx_k_nNodes_element,
sizeof(__pyx_k_nNodes_element), 0, 0, 1, 1},
35980 {&__pyx_n_s_nNodes_elementBoundary, __pyx_k_nNodes_elementBoundary,
sizeof(__pyx_k_nNodes_elementBoundary), 0, 0, 1, 1},
35981 {&__pyx_n_s_nNodes_global, __pyx_k_nNodes_global,
sizeof(__pyx_k_nNodes_global), 0, 0, 1, 1},
35982 {&__pyx_n_s_nSpace, __pyx_k_nSpace,
sizeof(__pyx_k_nSpace), 0, 0, 1, 1},
35983 {&__pyx_n_s_name, __pyx_k_name,
sizeof(__pyx_k_name), 0, 0, 1, 1},
35984 {&__pyx_n_s_name_2, __pyx_k_name_2,
sizeof(__pyx_k_name_2), 0, 0, 1, 1},
35985 {&__pyx_kp_u_ndarray_is_not_C_contiguous, __pyx_k_ndarray_is_not_C_contiguous,
sizeof(__pyx_k_ndarray_is_not_C_contiguous), 0, 1, 0, 0},
35986 {&__pyx_kp_u_ndarray_is_not_Fortran_contiguou, __pyx_k_ndarray_is_not_Fortran_contiguou,
sizeof(__pyx_k_ndarray_is_not_Fortran_contiguou), 0, 1, 0, 0},
35987 {&__pyx_n_s_ndim, __pyx_k_ndim,
sizeof(__pyx_k_ndim), 0, 0, 1, 1},
35988 {&__pyx_n_s_new, __pyx_k_new,
sizeof(__pyx_k_new), 0, 0, 1, 1},
35989 {&__pyx_kp_s_no_default___reduce___due_to_non, __pyx_k_no_default___reduce___due_to_non,
sizeof(__pyx_k_no_default___reduce___due_to_non), 0, 0, 1, 0},
35990 {&__pyx_n_s_nodeArray, __pyx_k_nodeArray,
sizeof(__pyx_k_nodeArray), 0, 0, 1, 1},
35991 {&__pyx_n_s_nodeDiametersArray, __pyx_k_nodeDiametersArray,
sizeof(__pyx_k_nodeDiametersArray), 0, 0, 1, 1},
35992 {&__pyx_n_s_nodeElementOffsets, __pyx_k_nodeElementOffsets,
sizeof(__pyx_k_nodeElementOffsets), 0, 0, 1, 1},
35993 {&__pyx_n_s_nodeElementsArray, __pyx_k_nodeElementsArray,
sizeof(__pyx_k_nodeElementsArray), 0, 0, 1, 1},
35994 {&__pyx_n_s_nodeMaterialTypes, __pyx_k_nodeMaterialTypes,
sizeof(__pyx_k_nodeMaterialTypes), 0, 0, 1, 1},
35995 {&__pyx_n_s_nodeStarArray, __pyx_k_nodeStarArray,
sizeof(__pyx_k_nodeStarArray), 0, 0, 1, 1},
35996 {&__pyx_n_s_nodeStarOffsets, __pyx_k_nodeStarOffsets,
sizeof(__pyx_k_nodeStarOffsets), 0, 0, 1, 1},
35997 {&__pyx_n_s_nodeSupportArray, __pyx_k_nodeSupportArray,
sizeof(__pyx_k_nodeSupportArray), 0, 0, 1, 1},
35998 {&__pyx_n_s_np, __pyx_k_np,
sizeof(__pyx_k_np), 0, 0, 1, 1},
35999 {&__pyx_n_s_numpy, __pyx_k_numpy,
sizeof(__pyx_k_numpy), 0, 0, 1, 1},
36000 {&__pyx_kp_s_numpy_core_multiarray_failed_to, __pyx_k_numpy_core_multiarray_failed_to,
sizeof(__pyx_k_numpy_core_multiarray_failed_to), 0, 0, 1, 0},
36001 {&__pyx_kp_s_numpy_core_umath_failed_to_impor, __pyx_k_numpy_core_umath_failed_to_impor,
sizeof(__pyx_k_numpy_core_umath_failed_to_impor), 0, 0, 1, 0},
36002 {&__pyx_n_s_nx, __pyx_k_nx,
sizeof(__pyx_k_nx), 0, 0, 1, 1},
36003 {&__pyx_n_s_ny, __pyx_k_ny,
sizeof(__pyx_k_ny), 0, 0, 1, 1},
36004 {&__pyx_n_s_nz, __pyx_k_nz,
sizeof(__pyx_k_nz), 0, 0, 1, 1},
36005 {&__pyx_n_s_obj, __pyx_k_obj,
sizeof(__pyx_k_obj), 0, 0, 1, 1},
36006 {&__pyx_n_s_pack, __pyx_k_pack,
sizeof(__pyx_k_pack), 0, 0, 1, 1},
36007 {&__pyx_n_s_pickle, __pyx_k_pickle,
sizeof(__pyx_k_pickle), 0, 0, 1, 1},
36008 {&__pyx_n_s_print, __pyx_k_print,
sizeof(__pyx_k_print), 0, 0, 1, 1},
36009 {&__pyx_n_s_proteus, __pyx_k_proteus,
sizeof(__pyx_k_proteus), 0, 0, 1, 1},
36010 {&__pyx_kp_s_proteus_cmeshTools_pyx, __pyx_k_proteus_cmeshTools_pyx,
sizeof(__pyx_k_proteus_cmeshTools_pyx), 0, 0, 1, 0},
36011 {&__pyx_n_s_px, __pyx_k_px,
sizeof(__pyx_k_px), 0, 0, 1, 1},
36012 {&__pyx_n_s_py, __pyx_k_py,
sizeof(__pyx_k_py), 0, 0, 1, 1},
36013 {&__pyx_n_s_pyx_PickleError, __pyx_k_pyx_PickleError,
sizeof(__pyx_k_pyx_PickleError), 0, 0, 1, 1},
36014 {&__pyx_n_s_pyx_checksum, __pyx_k_pyx_checksum,
sizeof(__pyx_k_pyx_checksum), 0, 0, 1, 1},
36015 {&__pyx_n_s_pyx_getbuffer, __pyx_k_pyx_getbuffer,
sizeof(__pyx_k_pyx_getbuffer), 0, 0, 1, 1},
36016 {&__pyx_n_s_pyx_result, __pyx_k_pyx_result,
sizeof(__pyx_k_pyx_result), 0, 0, 1, 1},
36017 {&__pyx_n_s_pyx_state, __pyx_k_pyx_state,
sizeof(__pyx_k_pyx_state), 0, 0, 1, 1},
36018 {&__pyx_n_s_pyx_type, __pyx_k_pyx_type,
sizeof(__pyx_k_pyx_type), 0, 0, 1, 1},
36019 {&__pyx_n_s_pyx_unpickle_Enum, __pyx_k_pyx_unpickle_Enum,
sizeof(__pyx_k_pyx_unpickle_Enum), 0, 0, 1, 1},
36020 {&__pyx_n_s_pyx_vtable, __pyx_k_pyx_vtable,
sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1},
36021 {&__pyx_n_s_pz, __pyx_k_pz,
sizeof(__pyx_k_pz), 0, 0, 1, 1},
36022 {&__pyx_n_s_range, __pyx_k_range,
sizeof(__pyx_k_range), 0, 0, 1, 1},
36023 {&__pyx_n_s_reduce, __pyx_k_reduce,
sizeof(__pyx_k_reduce), 0, 0, 1, 1},
36024 {&__pyx_n_s_reduce_cython, __pyx_k_reduce_cython,
sizeof(__pyx_k_reduce_cython), 0, 0, 1, 1},
36025 {&__pyx_n_s_reduce_ex, __pyx_k_reduce_ex,
sizeof(__pyx_k_reduce_ex), 0, 0, 1, 1},
36026 {&__pyx_n_s_refineTypeFlag, __pyx_k_refineTypeFlag,
sizeof(__pyx_k_refineTypeFlag), 0, 0, 1, 1},
36027 {&__pyx_kp_u_s, __pyx_k_s,
sizeof(__pyx_k_s), 0, 1, 0, 0},
36028 {&__pyx_kp_s_self_mesh_cannot_be_converted_to, __pyx_k_self_mesh_cannot_be_converted_to,
sizeof(__pyx_k_self_mesh_cannot_be_converted_to), 0, 0, 1, 0},
36029 {&__pyx_kp_s_self_multilevelMesh_cannot_be_co, __pyx_k_self_multilevelMesh_cannot_be_co,
sizeof(__pyx_k_self_multilevelMesh_cannot_be_co), 0, 0, 1, 0},
36030 {&__pyx_n_s_setNewestNodeBases, __pyx_k_setNewestNodeBases,
sizeof(__pyx_k_setNewestNodeBases), 0, 0, 1, 1},
36031 {&__pyx_kp_s_setNewestNodeBases_0_d_not_imple, __pyx_k_setNewestNodeBases_0_d_not_imple,
sizeof(__pyx_k_setNewestNodeBases_0_d_not_imple), 0, 0, 1, 0},
36032 {&__pyx_n_s_setstate, __pyx_k_setstate,
sizeof(__pyx_k_setstate), 0, 0, 1, 1},
36033 {&__pyx_n_s_setstate_cython, __pyx_k_setstate_cython,
sizeof(__pyx_k_setstate_cython), 0, 0, 1, 1},
36034 {&__pyx_n_s_shape, __pyx_k_shape,
sizeof(__pyx_k_shape), 0, 0, 1, 1},
36035 {&__pyx_n_s_sigmaMax, __pyx_k_sigmaMax,
sizeof(__pyx_k_sigmaMax), 0, 0, 1, 1},
36036 {&__pyx_n_s_size, __pyx_k_size,
sizeof(__pyx_k_size), 0, 0, 1, 1},
36037 {&__pyx_n_s_start, __pyx_k_start,
sizeof(__pyx_k_start), 0, 0, 1, 1},
36038 {&__pyx_n_s_step, __pyx_k_step,
sizeof(__pyx_k_step), 0, 0, 1, 1},
36039 {&__pyx_n_s_stop, __pyx_k_stop,
sizeof(__pyx_k_stop), 0, 0, 1, 1},
36040 {&__pyx_kp_s_strided_and_direct, __pyx_k_strided_and_direct,
sizeof(__pyx_k_strided_and_direct), 0, 0, 1, 0},
36041 {&__pyx_kp_s_strided_and_direct_or_indirect, __pyx_k_strided_and_direct_or_indirect,
sizeof(__pyx_k_strided_and_direct_or_indirect), 0, 0, 1, 0},
36042 {&__pyx_kp_s_strided_and_indirect, __pyx_k_strided_and_indirect,
sizeof(__pyx_k_strided_and_indirect), 0, 0, 1, 0},
36043 {&__pyx_kp_s_stringsource, __pyx_k_stringsource,
sizeof(__pyx_k_stringsource), 0, 0, 1, 0},
36044 {&__pyx_n_s_struct, __pyx_k_struct,
sizeof(__pyx_k_struct), 0, 0, 1, 1},
36045 {&__pyx_n_s_test, __pyx_k_test,
sizeof(__pyx_k_test), 0, 0, 1, 1},
36046 {&__pyx_n_s_triangleFlag, __pyx_k_triangleFlag,
sizeof(__pyx_k_triangleFlag), 0, 0, 1, 1},
36047 {&__pyx_kp_s_unable_to_allocate_array_data, __pyx_k_unable_to_allocate_array_data,
sizeof(__pyx_k_unable_to_allocate_array_data), 0, 0, 1, 0},
36048 {&__pyx_kp_s_unable_to_allocate_shape_and_str, __pyx_k_unable_to_allocate_shape_and_str,
sizeof(__pyx_k_unable_to_allocate_shape_and_str), 0, 0, 1, 0},
36049 {&__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_k_unknown_dtype_code_in_numpy_pxd,
sizeof(__pyx_k_unknown_dtype_code_in_numpy_pxd), 0, 1, 0, 0},
36050 {&__pyx_n_s_unpack, __pyx_k_unpack,
sizeof(__pyx_k_unpack), 0, 0, 1, 1},
36051 {&__pyx_n_s_update, __pyx_k_update,
sizeof(__pyx_k_update), 0, 0, 1, 1},
36052 {&__pyx_n_s_volume, __pyx_k_volume,
sizeof(__pyx_k_volume), 0, 0, 1, 1},
36053 {&__pyx_n_s_weights, __pyx_k_weights,
sizeof(__pyx_k_weights), 0, 0, 1, 1},
36054 {&__pyx_kp_s_wrong_nLevels, __pyx_k_wrong_nLevels,
sizeof(__pyx_k_wrong_nLevels), 0, 0, 1, 0},
36055 {&__pyx_n_s_zeros, __pyx_k_zeros,
sizeof(__pyx_k_zeros), 0, 0, 1, 1},
36056 {0, 0, 0, 0, 0, 0, 0}
36058 static CYTHON_SMALL_CODE
int __Pyx_InitCachedBuiltins(
void) {
36059 __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError);
if (!__pyx_builtin_TypeError) __PYX_ERR(0, 2, __pyx_L1_error)
36060 __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range);
if (!__pyx_builtin_range) __PYX_ERR(1, 214, __pyx_L1_error)
36061 __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError);
if (!__pyx_builtin_ValueError) __PYX_ERR(3, 272, __pyx_L1_error)
36062 __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError);
if (!__pyx_builtin_RuntimeError) __PYX_ERR(3, 856, __pyx_L1_error)
36063 __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError);
if (!__pyx_builtin_ImportError) __PYX_ERR(3, 1038, __pyx_L1_error)
36064 __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError);
if (!__pyx_builtin_MemoryError) __PYX_ERR(0, 148, __pyx_L1_error)
36065 __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_n_s_enumerate);
if (!__pyx_builtin_enumerate) __PYX_ERR(0, 151, __pyx_L1_error)
36066 __pyx_builtin_Ellipsis = __Pyx_GetBuiltinName(__pyx_n_s_Ellipsis);
if (!__pyx_builtin_Ellipsis) __PYX_ERR(0, 400, __pyx_L1_error)
36067 __pyx_builtin_id = __Pyx_GetBuiltinName(__pyx_n_s_id);
if (!__pyx_builtin_id) __PYX_ERR(0, 609, __pyx_L1_error)
36068 __pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError);
if (!__pyx_builtin_IndexError) __PYX_ERR(0, 828, __pyx_L1_error)
36074 static CYTHON_SMALL_CODE
int __Pyx_InitCachedConstants(
void) {
36075 __Pyx_RefNannyDeclarations
36076 __Pyx_RefNannySetupContext(
"__Pyx_InitCachedConstants", 0);
36085 __pyx_tuple_ = PyTuple_Pack(1, __pyx_int_0);
if (unlikely(!__pyx_tuple_)) __PYX_ERR(1, 34, __pyx_L1_error)
36086 __Pyx_GOTREF(__pyx_tuple_);
36087 __Pyx_GIVEREF(__pyx_tuple_);
36095 __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_self_mesh_cannot_be_converted_to);
if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 2, __pyx_L1_error)
36096 __Pyx_GOTREF(__pyx_tuple__2);
36097 __Pyx_GIVEREF(__pyx_tuple__2);
36104 __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_s_self_mesh_cannot_be_converted_to);
if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 4, __pyx_L1_error)
36105 __Pyx_GOTREF(__pyx_tuple__3);
36106 __Pyx_GIVEREF(__pyx_tuple__3);
36114 __pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_s_self_multilevelMesh_cannot_be_co);
if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 2, __pyx_L1_error)
36115 __Pyx_GOTREF(__pyx_tuple__4);
36116 __Pyx_GIVEREF(__pyx_tuple__4);
36123 __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_s_self_multilevelMesh_cannot_be_co);
if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 4, __pyx_L1_error)
36124 __Pyx_GOTREF(__pyx_tuple__5);
36125 __Pyx_GIVEREF(__pyx_tuple__5);
36134 __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_C_contiguous);
if (unlikely(!__pyx_tuple__6)) __PYX_ERR(3, 272, __pyx_L1_error)
36135 __Pyx_GOTREF(__pyx_tuple__6);
36136 __Pyx_GIVEREF(__pyx_tuple__6);
36145 __pyx_tuple__7 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_Fortran_contiguou);
if (unlikely(!__pyx_tuple__7)) __PYX_ERR(3, 276, __pyx_L1_error)
36146 __Pyx_GOTREF(__pyx_tuple__7);
36147 __Pyx_GIVEREF(__pyx_tuple__7);
36156 __pyx_tuple__8 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor);
if (unlikely(!__pyx_tuple__8)) __PYX_ERR(3, 306, __pyx_L1_error)
36157 __Pyx_GOTREF(__pyx_tuple__8);
36158 __Pyx_GIVEREF(__pyx_tuple__8);
36167 __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor);
if (unlikely(!__pyx_tuple__9)) __PYX_ERR(3, 856, __pyx_L1_error)
36168 __Pyx_GOTREF(__pyx_tuple__9);
36169 __Pyx_GIVEREF(__pyx_tuple__9);
36178 __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor_2);
if (unlikely(!__pyx_tuple__10)) __PYX_ERR(3, 880, __pyx_L1_error)
36179 __Pyx_GOTREF(__pyx_tuple__10);
36180 __Pyx_GIVEREF(__pyx_tuple__10);
36189 __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_multiarray_failed_to);
if (unlikely(!__pyx_tuple__11)) __PYX_ERR(3, 1038, __pyx_L1_error)
36190 __Pyx_GOTREF(__pyx_tuple__11);
36191 __Pyx_GIVEREF(__pyx_tuple__11);
36200 __pyx_tuple__12 = PyTuple_Pack(1, __pyx_kp_s_numpy_core_umath_failed_to_impor);
if (unlikely(!__pyx_tuple__12)) __PYX_ERR(3, 1044, __pyx_L1_error)
36201 __Pyx_GOTREF(__pyx_tuple__12);
36202 __Pyx_GIVEREF(__pyx_tuple__12);
36211 __pyx_tuple__13 = PyTuple_Pack(1, __pyx_kp_s_Empty_shape_tuple_for_cython_arr);
if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 133, __pyx_L1_error)
36212 __Pyx_GOTREF(__pyx_tuple__13);
36213 __Pyx_GIVEREF(__pyx_tuple__13);
36222 __pyx_tuple__14 = PyTuple_Pack(1, __pyx_kp_s_itemsize_0_for_cython_array);
if (unlikely(!__pyx_tuple__14)) __PYX_ERR(0, 136, __pyx_L1_error)
36223 __Pyx_GOTREF(__pyx_tuple__14);
36224 __Pyx_GIVEREF(__pyx_tuple__14);
36233 __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_s_unable_to_allocate_shape_and_str);
if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 148, __pyx_L1_error)
36234 __Pyx_GOTREF(__pyx_tuple__15);
36235 __Pyx_GIVEREF(__pyx_tuple__15);
36244 __pyx_tuple__16 = PyTuple_Pack(1, __pyx_kp_s_unable_to_allocate_array_data);
if (unlikely(!__pyx_tuple__16)) __PYX_ERR(0, 176, __pyx_L1_error)
36245 __Pyx_GOTREF(__pyx_tuple__16);
36246 __Pyx_GIVEREF(__pyx_tuple__16);
36255 __pyx_tuple__17 = PyTuple_Pack(1, __pyx_kp_s_Can_only_create_a_buffer_that_is);
if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 192, __pyx_L1_error)
36256 __Pyx_GOTREF(__pyx_tuple__17);
36257 __Pyx_GIVEREF(__pyx_tuple__17);
36265 __pyx_tuple__18 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non);
if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 2, __pyx_L1_error)
36266 __Pyx_GOTREF(__pyx_tuple__18);
36267 __Pyx_GIVEREF(__pyx_tuple__18);
36274 __pyx_tuple__19 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non);
if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 4, __pyx_L1_error)
36275 __Pyx_GOTREF(__pyx_tuple__19);
36276 __Pyx_GIVEREF(__pyx_tuple__19);
36285 __pyx_tuple__20 = PyTuple_Pack(1, __pyx_kp_s_Cannot_assign_to_read_only_memor);
if (unlikely(!__pyx_tuple__20)) __PYX_ERR(0, 414, __pyx_L1_error)
36286 __Pyx_GOTREF(__pyx_tuple__20);
36287 __Pyx_GIVEREF(__pyx_tuple__20);
36296 __pyx_tuple__21 = PyTuple_Pack(1, __pyx_kp_s_Unable_to_convert_item_to_object);
if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 491, __pyx_L1_error)
36297 __Pyx_GOTREF(__pyx_tuple__21);
36298 __Pyx_GIVEREF(__pyx_tuple__21);
36307 __pyx_tuple__22 = PyTuple_Pack(1, __pyx_kp_s_Cannot_create_writable_memory_vi);
if (unlikely(!__pyx_tuple__22)) __PYX_ERR(0, 516, __pyx_L1_error)
36308 __Pyx_GOTREF(__pyx_tuple__22);
36309 __Pyx_GIVEREF(__pyx_tuple__22);
36318 __pyx_tuple__23 = PyTuple_Pack(1, __pyx_kp_s_Buffer_view_does_not_expose_stri);
if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 566, __pyx_L1_error)
36319 __Pyx_GOTREF(__pyx_tuple__23);
36320 __Pyx_GIVEREF(__pyx_tuple__23);
36329 __pyx_tuple__24 = PyTuple_New(1);
if (unlikely(!__pyx_tuple__24)) __PYX_ERR(0, 573, __pyx_L1_error)
36330 __Pyx_GOTREF(__pyx_tuple__24);
36331 __Pyx_INCREF(__pyx_int_neg_1);
36332 __Pyx_GIVEREF(__pyx_int_neg_1);
36333 PyTuple_SET_ITEM(__pyx_tuple__24, 0, __pyx_int_neg_1);
36334 __Pyx_GIVEREF(__pyx_tuple__24);
36342 __pyx_tuple__25 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non);
if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 2, __pyx_L1_error)
36343 __Pyx_GOTREF(__pyx_tuple__25);
36344 __Pyx_GIVEREF(__pyx_tuple__25);
36351 __pyx_tuple__26 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non);
if (unlikely(!__pyx_tuple__26)) __PYX_ERR(0, 4, __pyx_L1_error)
36352 __Pyx_GOTREF(__pyx_tuple__26);
36353 __Pyx_GIVEREF(__pyx_tuple__26);
36362 __pyx_slice__27 = PySlice_New(Py_None, Py_None, Py_None);
if (unlikely(!__pyx_slice__27)) __PYX_ERR(0, 678, __pyx_L1_error)
36363 __Pyx_GOTREF(__pyx_slice__27);
36364 __Pyx_GIVEREF(__pyx_slice__27);
36373 __pyx_tuple__28 = PyTuple_Pack(1, __pyx_kp_s_Indirect_dimensions_not_supporte);
if (unlikely(!__pyx_tuple__28)) __PYX_ERR(0, 699, __pyx_L1_error)
36374 __Pyx_GOTREF(__pyx_tuple__28);
36375 __Pyx_GIVEREF(__pyx_tuple__28);
36383 __pyx_tuple__29 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non);
if (unlikely(!__pyx_tuple__29)) __PYX_ERR(0, 2, __pyx_L1_error)
36384 __Pyx_GOTREF(__pyx_tuple__29);
36385 __Pyx_GIVEREF(__pyx_tuple__29);
36392 __pyx_tuple__30 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non);
if (unlikely(!__pyx_tuple__30)) __PYX_ERR(0, 4, __pyx_L1_error)
36393 __Pyx_GOTREF(__pyx_tuple__30);
36394 __Pyx_GIVEREF(__pyx_tuple__30);
36403 __pyx_tuple__36 = PyTuple_Pack(1, __pyx_n_s_cmesh);
if (unlikely(!__pyx_tuple__36)) __PYX_ERR(1, 117, __pyx_L1_error)
36404 __Pyx_GOTREF(__pyx_tuple__36);
36405 __Pyx_GIVEREF(__pyx_tuple__36);
36406 __pyx_codeobj__37 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__36, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cmeshTools_pyx, __pyx_n_s_buildPythonMeshInterface, 117, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__37)) __PYX_ERR(1, 117, __pyx_L1_error)
36415 __pyx_tuple__38 = PyTuple_Pack(1, __pyx_n_s_cmesh);
if (unlikely(!__pyx_tuple__38)) __PYX_ERR(1, 173, __pyx_L1_error)
36416 __Pyx_GOTREF(__pyx_tuple__38);
36417 __Pyx_GIVEREF(__pyx_tuple__38);
36418 __pyx_codeobj__39 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__38, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cmeshTools_pyx, __pyx_n_s_buildPythonMeshInterfaceNoArrays, 173, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__39)) __PYX_ERR(1, 173, __pyx_L1_error)
36427 __pyx_tuple__40 = PyTuple_Pack(1, __pyx_n_s_cmultilevelMesh);
if (unlikely(!__pyx_tuple__40)) __PYX_ERR(1, 297, __pyx_L1_error)
36428 __Pyx_GOTREF(__pyx_tuple__40);
36429 __Pyx_GIVEREF(__pyx_tuple__40);
36430 __pyx_codeobj__41 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__40, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cmeshTools_pyx, __pyx_n_s_buildPythonMultilevelMeshInterfa, 297, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__41)) __PYX_ERR(1, 297, __pyx_L1_error)
36439 __pyx_tuple__42 = PyTuple_Pack(6, __pyx_n_s_nSpace, __pyx_n_s_cmultilevelMesh, __pyx_n_s_elementTagArray, __pyx_n_s_refineTypeFlag, __pyx_n_s_failed, __pyx_n_s_finestLevel);
if (unlikely(!__pyx_tuple__42)) __PYX_ERR(1, 491, __pyx_L1_error)
36440 __Pyx_GOTREF(__pyx_tuple__42);
36441 __Pyx_GIVEREF(__pyx_tuple__42);
36442 __pyx_codeobj__43 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__42, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cmeshTools_pyx, __pyx_n_s_locallyRefineMultilevelMesh, 491, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__43)) __PYX_ERR(1, 491, __pyx_L1_error)
36451 __pyx_tuple__44 = PyTuple_Pack(3, __pyx_n_s_nSpace, __pyx_n_s_cmultilevelMesh, __pyx_n_s_failed);
if (unlikely(!__pyx_tuple__44)) __PYX_ERR(1, 529, __pyx_L1_error)
36452 __Pyx_GOTREF(__pyx_tuple__44);
36453 __Pyx_GIVEREF(__pyx_tuple__44);
36454 __pyx_codeobj__45 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__44, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_proteus_cmeshTools_pyx, __pyx_n_s_setNewestNodeBases, 529, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__45)) __PYX_ERR(1, 529, __pyx_L1_error)
36463 __pyx_tuple__46 = PyTuple_Pack(1, __pyx_kp_s_strided_and_direct_or_indirect);
if (unlikely(!__pyx_tuple__46)) __PYX_ERR(0, 286, __pyx_L1_error)
36464 __Pyx_GOTREF(__pyx_tuple__46);
36465 __Pyx_GIVEREF(__pyx_tuple__46);
36474 __pyx_tuple__47 = PyTuple_Pack(1, __pyx_kp_s_strided_and_direct);
if (unlikely(!__pyx_tuple__47)) __PYX_ERR(0, 287, __pyx_L1_error)
36475 __Pyx_GOTREF(__pyx_tuple__47);
36476 __Pyx_GIVEREF(__pyx_tuple__47);
36485 __pyx_tuple__48 = PyTuple_Pack(1, __pyx_kp_s_strided_and_indirect);
if (unlikely(!__pyx_tuple__48)) __PYX_ERR(0, 288, __pyx_L1_error)
36486 __Pyx_GOTREF(__pyx_tuple__48);
36487 __Pyx_GIVEREF(__pyx_tuple__48);
36496 __pyx_tuple__49 = PyTuple_Pack(1, __pyx_kp_s_contiguous_and_direct);
if (unlikely(!__pyx_tuple__49)) __PYX_ERR(0, 291, __pyx_L1_error)
36497 __Pyx_GOTREF(__pyx_tuple__49);
36498 __Pyx_GIVEREF(__pyx_tuple__49);
36507 __pyx_tuple__50 = PyTuple_Pack(1, __pyx_kp_s_contiguous_and_indirect);
if (unlikely(!__pyx_tuple__50)) __PYX_ERR(0, 292, __pyx_L1_error)
36508 __Pyx_GOTREF(__pyx_tuple__50);
36509 __Pyx_GIVEREF(__pyx_tuple__50);
36516 __pyx_tuple__51 = PyTuple_Pack(5, __pyx_n_s_pyx_type, __pyx_n_s_pyx_checksum, __pyx_n_s_pyx_state, __pyx_n_s_pyx_PickleError, __pyx_n_s_pyx_result);
if (unlikely(!__pyx_tuple__51)) __PYX_ERR(0, 1, __pyx_L1_error)
36517 __Pyx_GOTREF(__pyx_tuple__51);
36518 __Pyx_GIVEREF(__pyx_tuple__51);
36519 __pyx_codeobj__52 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_stringsource, __pyx_n_s_pyx_unpickle_Enum, 1, __pyx_empty_bytes);
if (unlikely(!__pyx_codeobj__52)) __PYX_ERR(0, 1, __pyx_L1_error)
36520 __Pyx_RefNannyFinishContext();
36523 __Pyx_RefNannyFinishContext();
36527 static CYTHON_SMALL_CODE
int __Pyx_InitGlobals(
void) {
36528 if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(1, 1, __pyx_L1_error);
36529 __pyx_int_0 = PyInt_FromLong(0);
if (unlikely(!__pyx_int_0)) __PYX_ERR(1, 1, __pyx_L1_error)
36530 __pyx_int_1 = PyInt_FromLong(1);
if (unlikely(!__pyx_int_1)) __PYX_ERR(1, 1, __pyx_L1_error)
36531 __pyx_int_184977713 = PyInt_FromLong(184977713
L);
if (unlikely(!__pyx_int_184977713)) __PYX_ERR(1, 1, __pyx_L1_error)
36532 __pyx_int_neg_1 = PyInt_FromLong(-1);
if (unlikely(!__pyx_int_neg_1)) __PYX_ERR(1, 1, __pyx_L1_error)
36538 static CYTHON_SMALL_CODE
int __Pyx_modinit_global_init_code(
void);
36539 static CYTHON_SMALL_CODE
int __Pyx_modinit_variable_export_code(
void);
36540 static CYTHON_SMALL_CODE
int __Pyx_modinit_function_export_code(
void);
36541 static CYTHON_SMALL_CODE
int __Pyx_modinit_type_init_code(
void);
36542 static CYTHON_SMALL_CODE
int __Pyx_modinit_type_import_code(
void);
36543 static CYTHON_SMALL_CODE
int __Pyx_modinit_variable_import_code(
void);
36544 static CYTHON_SMALL_CODE
int __Pyx_modinit_function_import_code(
void);
36546 static int __Pyx_modinit_global_init_code(
void) {
36547 __Pyx_RefNannyDeclarations
36548 __Pyx_RefNannySetupContext(
"__Pyx_modinit_global_init_code", 0);
36550 generic = Py_None; Py_INCREF(Py_None);
36551 strided = Py_None; Py_INCREF(Py_None);
36552 indirect = Py_None; Py_INCREF(Py_None);
36553 contiguous = Py_None; Py_INCREF(Py_None);
36554 indirect_contiguous = Py_None; Py_INCREF(Py_None);
36555 __Pyx_RefNannyFinishContext();
36559 static int __Pyx_modinit_variable_export_code(
void) {
36560 __Pyx_RefNannyDeclarations
36561 __Pyx_RefNannySetupContext(
"__Pyx_modinit_variable_export_code", 0);
36563 __Pyx_RefNannyFinishContext();
36567 static int __Pyx_modinit_function_export_code(
void) {
36568 __Pyx_RefNannyDeclarations
36569 __Pyx_RefNannySetupContext(
"__Pyx_modinit_function_export_code", 0);
36571 __Pyx_RefNannyFinishContext();
36575 static int __Pyx_modinit_type_init_code(
void) {
36576 __Pyx_RefNannyDeclarations
36577 __Pyx_RefNannySetupContext(
"__Pyx_modinit_type_init_code", 0);
36579 if (PyType_Ready(&__pyx_type_10cmeshTools_CMesh) < 0) __PYX_ERR(1, 11, __pyx_L1_error)
36580 __pyx_type_10cmeshTools_CMesh.tp_print = 0;
36581 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_10cmeshTools_CMesh.tp_dictoffset && __pyx_type_10cmeshTools_CMesh.tp_getattro == PyObject_GenericGetAttr)) {
36582 __pyx_type_10cmeshTools_CMesh.tp_getattro = __Pyx_PyObject_GenericGetAttr;
36584 if (PyObject_SetAttr(__pyx_m, __pyx_n_s_CMesh, (PyObject *)&__pyx_type_10cmeshTools_CMesh) < 0) __PYX_ERR(1, 11, __pyx_L1_error)
36585 if (__Pyx_setup_reduce((PyObject*)&__pyx_type_10cmeshTools_CMesh) < 0) __PYX_ERR(1, 11, __pyx_L1_error)
36586 __pyx_ptype_10cmeshTools_CMesh = &__pyx_type_10cmeshTools_CMesh;
36587 if (PyType_Ready(&__pyx_type_10cmeshTools_CMultilevelMesh) < 0) __PYX_ERR(1, 199, __pyx_L1_error)
36588 __pyx_type_10cmeshTools_CMultilevelMesh.tp_print = 0;
36589 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_10cmeshTools_CMultilevelMesh.tp_dictoffset && __pyx_type_10cmeshTools_CMultilevelMesh.tp_getattro == PyObject_GenericGetAttr)) {
36590 __pyx_type_10cmeshTools_CMultilevelMesh.tp_getattro = __Pyx_PyObject_GenericGetAttr;
36592 if (PyObject_SetAttr(__pyx_m, __pyx_n_s_CMultilevelMesh, (PyObject *)&__pyx_type_10cmeshTools_CMultilevelMesh) < 0) __PYX_ERR(1, 199, __pyx_L1_error)
36593 if (__Pyx_setup_reduce((PyObject*)&__pyx_type_10cmeshTools_CMultilevelMesh) < 0) __PYX_ERR(1, 199, __pyx_L1_error)
36594 __pyx_ptype_10cmeshTools_CMultilevelMesh = &__pyx_type_10cmeshTools_CMultilevelMesh;
36595 __pyx_vtabptr_array = &__pyx_vtable_array;
36596 __pyx_vtable_array.get_memview = (PyObject *(*)(
struct __pyx_array_obj *))__pyx_array_get_memview;
36597 if (PyType_Ready(&__pyx_type___pyx_array) < 0) __PYX_ERR(0, 105, __pyx_L1_error)
36598 __pyx_type___pyx_array.tp_print = 0;
36599 if (__Pyx_SetVtable(__pyx_type___pyx_array.tp_dict, __pyx_vtabptr_array) < 0) __PYX_ERR(0, 105, __pyx_L1_error)
36600 if (__Pyx_setup_reduce((PyObject*)&__pyx_type___pyx_array) < 0) __PYX_ERR(0, 105, __pyx_L1_error)
36601 __pyx_array_type = &__pyx_type___pyx_array;
36602 if (PyType_Ready(&__pyx_type___pyx_MemviewEnum) < 0) __PYX_ERR(0, 279, __pyx_L1_error)
36603 __pyx_type___pyx_MemviewEnum.tp_print = 0;
36604 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type___pyx_MemviewEnum.tp_dictoffset && __pyx_type___pyx_MemviewEnum.tp_getattro == PyObject_GenericGetAttr)) {
36605 __pyx_type___pyx_MemviewEnum.tp_getattro = __Pyx_PyObject_GenericGetAttr;
36607 if (__Pyx_setup_reduce((PyObject*)&__pyx_type___pyx_MemviewEnum) < 0) __PYX_ERR(0, 279, __pyx_L1_error)
36608 __pyx_MemviewEnum_type = &__pyx_type___pyx_MemviewEnum;
36609 __pyx_vtabptr_memoryview = &__pyx_vtable_memoryview;
36610 __pyx_vtable_memoryview.get_item_pointer = (
char *(*)(
struct __pyx_memoryview_obj *, PyObject *))__pyx_memoryview_get_item_pointer;
36611 __pyx_vtable_memoryview.is_slice = (PyObject *(*)(
struct __pyx_memoryview_obj *, PyObject *))__pyx_memoryview_is_slice;
36612 __pyx_vtable_memoryview.setitem_slice_assignment = (PyObject *(*)(
struct __pyx_memoryview_obj *, PyObject *, PyObject *))__pyx_memoryview_setitem_slice_assignment;
36613 __pyx_vtable_memoryview.setitem_slice_assign_scalar = (PyObject *(*)(
struct __pyx_memoryview_obj *,
struct __pyx_memoryview_obj *, PyObject *))__pyx_memoryview_setitem_slice_assign_scalar;
36614 __pyx_vtable_memoryview.setitem_indexed = (PyObject *(*)(
struct __pyx_memoryview_obj *, PyObject *, PyObject *))__pyx_memoryview_setitem_indexed;
36615 __pyx_vtable_memoryview.convert_item_to_object = (PyObject *(*)(
struct __pyx_memoryview_obj *,
char *))__pyx_memoryview_convert_item_to_object;
36616 __pyx_vtable_memoryview.assign_item_from_object = (PyObject *(*)(
struct __pyx_memoryview_obj *,
char *, PyObject *))__pyx_memoryview_assign_item_from_object;
36617 if (PyType_Ready(&__pyx_type___pyx_memoryview) < 0) __PYX_ERR(0, 330, __pyx_L1_error)
36618 __pyx_type___pyx_memoryview.tp_print = 0;
36619 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type___pyx_memoryview.tp_dictoffset && __pyx_type___pyx_memoryview.tp_getattro == PyObject_GenericGetAttr)) {
36620 __pyx_type___pyx_memoryview.tp_getattro = __Pyx_PyObject_GenericGetAttr;
36622 if (__Pyx_SetVtable(__pyx_type___pyx_memoryview.tp_dict, __pyx_vtabptr_memoryview) < 0) __PYX_ERR(0, 330, __pyx_L1_error)
36623 if (__Pyx_setup_reduce((PyObject*)&__pyx_type___pyx_memoryview) < 0) __PYX_ERR(0, 330, __pyx_L1_error)
36624 __pyx_memoryview_type = &__pyx_type___pyx_memoryview;
36625 __pyx_vtabptr__memoryviewslice = &__pyx_vtable__memoryviewslice;
36626 __pyx_vtable__memoryviewslice.__pyx_base = *__pyx_vtabptr_memoryview;
36627 __pyx_vtable__memoryviewslice.__pyx_base.convert_item_to_object = (PyObject *(*)(
struct __pyx_memoryview_obj *,
char *))__pyx_memoryviewslice_convert_item_to_object;
36628 __pyx_vtable__memoryviewslice.__pyx_base.assign_item_from_object = (PyObject *(*)(
struct __pyx_memoryview_obj *,
char *, PyObject *))__pyx_memoryviewslice_assign_item_from_object;
36629 __pyx_type___pyx_memoryviewslice.tp_base = __pyx_memoryview_type;
36630 if (PyType_Ready(&__pyx_type___pyx_memoryviewslice) < 0) __PYX_ERR(0, 961, __pyx_L1_error)
36631 __pyx_type___pyx_memoryviewslice.tp_print = 0;
36632 if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type___pyx_memoryviewslice.tp_dictoffset && __pyx_type___pyx_memoryviewslice.tp_getattro == PyObject_GenericGetAttr)) {
36633 __pyx_type___pyx_memoryviewslice.tp_getattro = __Pyx_PyObject_GenericGetAttr;
36635 if (__Pyx_SetVtable(__pyx_type___pyx_memoryviewslice.tp_dict, __pyx_vtabptr__memoryviewslice) < 0) __PYX_ERR(0, 961, __pyx_L1_error)
36636 if (__Pyx_setup_reduce((PyObject*)&__pyx_type___pyx_memoryviewslice) < 0) __PYX_ERR(0, 961, __pyx_L1_error)
36637 __pyx_memoryviewslice_type = &__pyx_type___pyx_memoryviewslice;
36638 __Pyx_RefNannyFinishContext();
36641 __Pyx_RefNannyFinishContext();
36645 static int __Pyx_modinit_type_import_code(
void) {
36646 __Pyx_RefNannyDeclarations
36647 PyObject *__pyx_t_1 = NULL;
36648 __Pyx_RefNannySetupContext(
"__Pyx_modinit_type_import_code", 0);
36650 __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME);
if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 9, __pyx_L1_error)
36651 __Pyx_GOTREF(__pyx_t_1);
36652 __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME,
"type",
36653 #
if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
36654 sizeof(PyTypeObject),
36656 sizeof(PyHeapTypeObject),
36658 __Pyx_ImportType_CheckSize_Warn);
36659 if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(4, 9, __pyx_L1_error)
36660 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36661 __pyx_t_1 = PyImport_ImportModule(
"numpy");
if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 206, __pyx_L1_error)
36662 __Pyx_GOTREF(__pyx_t_1);
36663 __pyx_ptype_5numpy_dtype = __Pyx_ImportType(__pyx_t_1,
"numpy",
"dtype",
sizeof(PyArray_Descr), __Pyx_ImportType_CheckSize_Ignore);
36664 if (!__pyx_ptype_5numpy_dtype) __PYX_ERR(3, 206, __pyx_L1_error)
36665 __pyx_ptype_5numpy_flatiter = __Pyx_ImportType(__pyx_t_1,
"numpy",
"flatiter",
sizeof(PyArrayIterObject), __Pyx_ImportType_CheckSize_Warn);
36666 if (!__pyx_ptype_5numpy_flatiter) __PYX_ERR(3, 229, __pyx_L1_error)
36667 __pyx_ptype_5numpy_broadcast = __Pyx_ImportType(__pyx_t_1,
"numpy",
"broadcast",
sizeof(PyArrayMultiIterObject), __Pyx_ImportType_CheckSize_Warn);
36668 if (!__pyx_ptype_5numpy_broadcast) __PYX_ERR(3, 233, __pyx_L1_error)
36669 __pyx_ptype_5numpy_ndarray = __Pyx_ImportType(__pyx_t_1,
"numpy",
"ndarray",
sizeof(PyArrayObject), __Pyx_ImportType_CheckSize_Ignore);
36670 if (!__pyx_ptype_5numpy_ndarray) __PYX_ERR(3, 242, __pyx_L1_error)
36671 __pyx_ptype_5numpy_ufunc = __Pyx_ImportType(__pyx_t_1,
"numpy",
"ufunc",
sizeof(PyUFuncObject), __Pyx_ImportType_CheckSize_Warn);
36672 if (!__pyx_ptype_5numpy_ufunc) __PYX_ERR(3, 918, __pyx_L1_error)
36673 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36674 __Pyx_RefNannyFinishContext();
36677 __Pyx_XDECREF(__pyx_t_1);
36678 __Pyx_RefNannyFinishContext();
36682 static int __Pyx_modinit_variable_import_code(
void) {
36683 __Pyx_RefNannyDeclarations
36684 __Pyx_RefNannySetupContext(
"__Pyx_modinit_variable_import_code", 0);
36686 __Pyx_RefNannyFinishContext();
36690 static int __Pyx_modinit_function_import_code(
void) {
36691 __Pyx_RefNannyDeclarations
36692 __Pyx_RefNannySetupContext(
"__Pyx_modinit_function_import_code", 0);
36694 __Pyx_RefNannyFinishContext();
36699 #if PY_MAJOR_VERSION < 3
36700 #ifdef CYTHON_NO_PYINIT_EXPORT
36701 #define __Pyx_PyMODINIT_FUNC void
36703 #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
36706 #ifdef CYTHON_NO_PYINIT_EXPORT
36707 #define __Pyx_PyMODINIT_FUNC PyObject *
36709 #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
36714 #if PY_MAJOR_VERSION < 3
36715 __Pyx_PyMODINIT_FUNC initcmeshTools(
void) CYTHON_SMALL_CODE;
36716 __Pyx_PyMODINIT_FUNC initcmeshTools(
void)
36718 __Pyx_PyMODINIT_FUNC PyInit_cmeshTools(
void) CYTHON_SMALL_CODE;
36719 __Pyx_PyMODINIT_FUNC PyInit_cmeshTools(
void)
36720 #if CYTHON_PEP489_MULTI_PHASE_INIT
36722 return PyModuleDef_Init(&__pyx_moduledef);
36724 static CYTHON_SMALL_CODE
int __Pyx_check_single_interpreter(
void) {
36725 #if PY_VERSION_HEX >= 0x030700A1
36726 static PY_INT64_T main_interpreter_id = -1;
36727 PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
36728 if (main_interpreter_id == -1) {
36729 main_interpreter_id = current_id;
36730 return (unlikely(current_id == -1)) ? -1 : 0;
36731 }
else if (unlikely(main_interpreter_id != current_id))
36733 static PyInterpreterState *main_interpreter = NULL;
36734 PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
36735 if (!main_interpreter) {
36736 main_interpreter = current_interpreter;
36737 }
else if (unlikely(main_interpreter != current_interpreter))
36742 "Interpreter change detected - this module can only be loaded into one interpreter per process.");
36747 static CYTHON_SMALL_CODE
int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict,
const char* from_name,
const char* to_name,
int allow_none) {
36748 PyObject *value = PyObject_GetAttrString(spec, from_name);
36750 if (likely(value)) {
36751 if (allow_none || value != Py_None) {
36752 result = PyDict_SetItemString(moddict, to_name, value);
36755 }
else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
36762 static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) {
36763 PyObject *module = NULL, *moddict, *modname;
36764 if (__Pyx_check_single_interpreter())
36767 return __Pyx_NewRef(__pyx_m);
36768 modname = PyObject_GetAttrString(spec,
"name");
36769 if (unlikely(!modname))
goto bad;
36770 module = PyModule_NewObject(modname);
36771 Py_DECREF(modname);
36772 if (unlikely(!module))
goto bad;
36773 moddict = PyModule_GetDict(module);
36774 if (unlikely(!moddict))
goto bad;
36775 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"loader",
"__loader__", 1) < 0))
goto bad;
36776 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"origin",
"__file__", 1) < 0))
goto bad;
36777 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"parent",
"__package__", 1) < 0))
goto bad;
36778 if (unlikely(__Pyx_copy_spec_to_module(spec, moddict,
"submodule_search_locations",
"__path__", 0) < 0))
goto bad;
36781 Py_XDECREF(module);
36786 static CYTHON_SMALL_CODE
int __pyx_pymod_exec_cmeshTools(PyObject *__pyx_pyinit_module)
36790 PyObject *__pyx_t_1 = NULL;
36791 PyObject *__pyx_t_2 = NULL;
36792 static PyThread_type_lock __pyx_t_3[8];
36793 __Pyx_RefNannyDeclarations
36794 #if CYTHON_PEP489_MULTI_PHASE_INIT
36796 if (__pyx_m == __pyx_pyinit_module)
return 0;
36797 PyErr_SetString(PyExc_RuntimeError,
"Module 'cmeshTools' has already been imported. Re-initialisation is not supported.");
36800 #elif PY_MAJOR_VERSION >= 3
36801 if (__pyx_m)
return __Pyx_NewRef(__pyx_m);
36803 #if CYTHON_REFNANNY
36804 __Pyx_RefNanny = __Pyx_RefNannyImportAPI(
"refnanny");
36805 if (!__Pyx_RefNanny) {
36807 __Pyx_RefNanny = __Pyx_RefNannyImportAPI(
"Cython.Runtime.refnanny");
36808 if (!__Pyx_RefNanny)
36809 Py_FatalError(
"failed to import 'refnanny' module");
36812 __Pyx_RefNannySetupContext(
"__Pyx_PyMODINIT_FUNC PyInit_cmeshTools(void)", 0);
36813 if (__Pyx_check_binary_version() < 0) __PYX_ERR(1, 1, __pyx_L1_error)
36814 #ifdef __Pxy_PyFrame_Initialize_Offsets
36815 __Pxy_PyFrame_Initialize_Offsets();
36817 __pyx_empty_tuple = PyTuple_New(0);
if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(1, 1, __pyx_L1_error)
36818 __pyx_empty_bytes = PyBytes_FromStringAndSize(
"", 0);
if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(1, 1, __pyx_L1_error)
36819 __pyx_empty_unicode = PyUnicode_FromStringAndSize(
"", 0);
if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(1, 1, __pyx_L1_error)
36820 #ifdef __Pyx_CyFunction_USED
36821 if (__pyx_CyFunction_init() < 0) __PYX_ERR(1, 1, __pyx_L1_error)
36823 #ifdef __Pyx_FusedFunction_USED
36824 if (__pyx_FusedFunction_init() < 0) __PYX_ERR(1, 1, __pyx_L1_error)
36826 #ifdef __Pyx_Coroutine_USED
36827 if (__pyx_Coroutine_init() < 0) __PYX_ERR(1, 1, __pyx_L1_error)
36829 #ifdef __Pyx_Generator_USED
36830 if (__pyx_Generator_init() < 0) __PYX_ERR(1, 1, __pyx_L1_error)
36832 #ifdef __Pyx_AsyncGen_USED
36833 if (__pyx_AsyncGen_init() < 0) __PYX_ERR(1, 1, __pyx_L1_error)
36835 #ifdef __Pyx_StopAsyncIteration_USED
36836 if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(1, 1, __pyx_L1_error)
36840 #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
36842 PyEval_InitThreads();
36846 #if CYTHON_PEP489_MULTI_PHASE_INIT
36847 __pyx_m = __pyx_pyinit_module;
36848 Py_INCREF(__pyx_m);
36850 #if PY_MAJOR_VERSION < 3
36851 __pyx_m = Py_InitModule4(
"cmeshTools", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
36853 __pyx_m = PyModule_Create(&__pyx_moduledef);
36855 if (unlikely(!__pyx_m)) __PYX_ERR(1, 1, __pyx_L1_error)
36857 __pyx_d = PyModule_GetDict(__pyx_m);
if (unlikely(!__pyx_d)) __PYX_ERR(1, 1, __pyx_L1_error)
36858 Py_INCREF(__pyx_d);
36859 __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME);
if (unlikely(!__pyx_b)) __PYX_ERR(1, 1, __pyx_L1_error)
36860 __pyx_cython_runtime = PyImport_AddModule((
char *)
"cython_runtime");
if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(1, 1, __pyx_L1_error)
36861 #if CYTHON_COMPILING_IN_PYPY
36862 Py_INCREF(__pyx_b);
36864 if (PyObject_SetAttrString(__pyx_m,
"__builtins__", __pyx_b) < 0) __PYX_ERR(1, 1, __pyx_L1_error);
36866 if (__Pyx_InitGlobals() < 0) __PYX_ERR(1, 1, __pyx_L1_error)
36867 #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
36868 if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(1, 1, __pyx_L1_error)
36870 if (__pyx_module_is_main_cmeshTools) {
36871 if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name_2, __pyx_n_s_main) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
36873 #if PY_MAJOR_VERSION >= 3
36875 PyObject *modules = PyImport_GetModuleDict();
if (unlikely(!modules)) __PYX_ERR(1, 1, __pyx_L1_error)
36876 if (!PyDict_GetItemString(modules,
"cmeshTools")) {
36877 if (unlikely(PyDict_SetItemString(modules,
"cmeshTools", __pyx_m) < 0)) __PYX_ERR(1, 1, __pyx_L1_error)
36882 if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(1, 1, __pyx_L1_error)
36884 if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(1, 1, __pyx_L1_error)
36886 (void)__Pyx_modinit_global_init_code();
36887 (void)__Pyx_modinit_variable_export_code();
36888 (void)__Pyx_modinit_function_export_code();
36889 if (unlikely(__Pyx_modinit_type_init_code() != 0))
goto __pyx_L1_error;
36890 if (unlikely(__Pyx_modinit_type_import_code() != 0))
goto __pyx_L1_error;
36891 (void)__Pyx_modinit_variable_import_code();
36892 (void)__Pyx_modinit_function_import_code();
36894 #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
36895 if (__Pyx_patch_abc() < 0) __PYX_ERR(1, 1, __pyx_L1_error)
36905 __pyx_t_1 = __Pyx_Import(__pyx_n_s_numpy, 0, -1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
36906 __Pyx_GOTREF(__pyx_t_1);
36907 if (PyDict_SetItem(__pyx_d, __pyx_n_s_np, __pyx_t_1) < 0) __PYX_ERR(1, 4, __pyx_L1_error)
36908 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36917 __pyx_t_1 = PyList_New(1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 7, __pyx_L1_error)
36918 __Pyx_GOTREF(__pyx_t_1);
36919 __Pyx_INCREF(__pyx_n_s_MPI);
36920 __Pyx_GIVEREF(__pyx_n_s_MPI);
36921 PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_MPI);
36922 __pyx_t_2 = __Pyx_Import(__pyx_n_s_mpi4py, __pyx_t_1, -1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 7, __pyx_L1_error)
36923 __Pyx_GOTREF(__pyx_t_2);
36924 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36925 __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_MPI);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 7, __pyx_L1_error)
36926 __Pyx_GOTREF(__pyx_t_1);
36927 if (PyDict_SetItem(__pyx_d, __pyx_n_s_MPI, __pyx_t_1) < 0) __PYX_ERR(1, 7, __pyx_L1_error)
36928 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36929 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
36938 __pyx_t_2 = PyList_New(1);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 9, __pyx_L1_error)
36939 __Pyx_GOTREF(__pyx_t_2);
36940 __Pyx_INCREF(__pyx_n_s_Comm);
36941 __Pyx_GIVEREF(__pyx_n_s_Comm);
36942 PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_Comm);
36943 __pyx_t_1 = __Pyx_Import(__pyx_n_s_proteus, __pyx_t_2, -1);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 9, __pyx_L1_error)
36944 __Pyx_GOTREF(__pyx_t_1);
36945 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
36946 __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_Comm);
if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 9, __pyx_L1_error)
36947 __Pyx_GOTREF(__pyx_t_2);
36948 if (PyDict_SetItem(__pyx_d, __pyx_n_s_Comm, __pyx_t_2) < 0) __PYX_ERR(1, 9, __pyx_L1_error)
36949 __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
36950 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36959 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_10cmeshTools_1buildPythonMeshInterface, NULL, __pyx_n_s_cmeshTools);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 117, __pyx_L1_error)
36960 __Pyx_GOTREF(__pyx_t_1);
36961 if (PyDict_SetItem(__pyx_d, __pyx_n_s_buildPythonMeshInterface, __pyx_t_1) < 0) __PYX_ERR(1, 117, __pyx_L1_error)
36962 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36971 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_10cmeshTools_3buildPythonMeshInterfaceNoArrays, NULL, __pyx_n_s_cmeshTools);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 173, __pyx_L1_error)
36972 __Pyx_GOTREF(__pyx_t_1);
36973 if (PyDict_SetItem(__pyx_d, __pyx_n_s_buildPythonMeshInterfaceNoArrays, __pyx_t_1) < 0) __PYX_ERR(1, 173, __pyx_L1_error)
36974 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36983 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_10cmeshTools_5buildPythonMultilevelMeshInterface, NULL, __pyx_n_s_cmeshTools);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 297, __pyx_L1_error)
36984 __Pyx_GOTREF(__pyx_t_1);
36985 if (PyDict_SetItem(__pyx_d, __pyx_n_s_buildPythonMultilevelMeshInterfa, __pyx_t_1) < 0) __PYX_ERR(1, 297, __pyx_L1_error)
36986 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
36995 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_10cmeshTools_67locallyRefineMultilevelMesh, NULL, __pyx_n_s_cmeshTools);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 491, __pyx_L1_error)
36996 __Pyx_GOTREF(__pyx_t_1);
36997 if (PyDict_SetItem(__pyx_d, __pyx_n_s_locallyRefineMultilevelMesh, __pyx_t_1) < 0) __PYX_ERR(1, 491, __pyx_L1_error)
36998 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
37007 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_10cmeshTools_69setNewestNodeBases, NULL, __pyx_n_s_cmeshTools);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 529, __pyx_L1_error)
37008 __Pyx_GOTREF(__pyx_t_1);
37009 if (PyDict_SetItem(__pyx_d, __pyx_n_s_setNewestNodeBases, __pyx_t_1) < 0) __PYX_ERR(1, 529, __pyx_L1_error)
37010 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
37017 __pyx_t_1 = __Pyx_PyDict_NewPresized(0);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1, __pyx_L1_error)
37018 __Pyx_GOTREF(__pyx_t_1);
37019 if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
37020 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
37029 __pyx_t_1 = __pyx_capsule_create(((
void *)(&__pyx_array_getbuffer)), ((
char *)
"getbuffer(obj, view, flags)"));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 209, __pyx_L1_error)
37030 __Pyx_GOTREF(__pyx_t_1);
37031 if (PyDict_SetItem((PyObject *)__pyx_array_type->tp_dict, __pyx_n_s_pyx_getbuffer, __pyx_t_1) < 0) __PYX_ERR(0, 209, __pyx_L1_error)
37032 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
37033 PyType_Modified(__pyx_array_type);
37042 __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__46, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 286, __pyx_L1_error)
37043 __Pyx_GOTREF(__pyx_t_1);
37044 __Pyx_XGOTREF(
generic);
37045 __Pyx_DECREF_SET(
generic, __pyx_t_1);
37046 __Pyx_GIVEREF(__pyx_t_1);
37056 __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__47, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 287, __pyx_L1_error)
37057 __Pyx_GOTREF(__pyx_t_1);
37058 __Pyx_XGOTREF(strided);
37059 __Pyx_DECREF_SET(strided, __pyx_t_1);
37060 __Pyx_GIVEREF(__pyx_t_1);
37070 __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__48, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 288, __pyx_L1_error)
37071 __Pyx_GOTREF(__pyx_t_1);
37072 __Pyx_XGOTREF(indirect);
37073 __Pyx_DECREF_SET(indirect, __pyx_t_1);
37074 __Pyx_GIVEREF(__pyx_t_1);
37084 __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__49, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 291, __pyx_L1_error)
37085 __Pyx_GOTREF(__pyx_t_1);
37086 __Pyx_XGOTREF(contiguous);
37087 __Pyx_DECREF_SET(contiguous, __pyx_t_1);
37088 __Pyx_GIVEREF(__pyx_t_1);
37098 __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_MemviewEnum_type), __pyx_tuple__50, NULL);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 292, __pyx_L1_error)
37099 __Pyx_GOTREF(__pyx_t_1);
37100 __Pyx_XGOTREF(indirect_contiguous);
37101 __Pyx_DECREF_SET(indirect_contiguous, __pyx_t_1);
37102 __Pyx_GIVEREF(__pyx_t_1);
37112 __pyx_memoryview_thread_locks_used = 0;
37121 __pyx_t_3[0] = PyThread_allocate_lock();
37122 __pyx_t_3[1] = PyThread_allocate_lock();
37123 __pyx_t_3[2] = PyThread_allocate_lock();
37124 __pyx_t_3[3] = PyThread_allocate_lock();
37125 __pyx_t_3[4] = PyThread_allocate_lock();
37126 __pyx_t_3[5] = PyThread_allocate_lock();
37127 __pyx_t_3[6] = PyThread_allocate_lock();
37128 __pyx_t_3[7] = PyThread_allocate_lock();
37129 memcpy(&(__pyx_memoryview_thread_locks[0]), __pyx_t_3,
sizeof(__pyx_memoryview_thread_locks[0]) * (8));
37138 __pyx_t_1 = __pyx_capsule_create(((
void *)(&__pyx_memoryview_getbuffer)), ((
char *)
"getbuffer(obj, view, flags)"));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 545, __pyx_L1_error)
37139 __Pyx_GOTREF(__pyx_t_1);
37140 if (PyDict_SetItem((PyObject *)__pyx_memoryview_type->tp_dict, __pyx_n_s_pyx_getbuffer, __pyx_t_1) < 0) __PYX_ERR(0, 545, __pyx_L1_error)
37141 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
37142 PyType_Modified(__pyx_memoryview_type);
37151 __pyx_t_1 = __pyx_capsule_create(((
void *)(&__pyx_memoryview_getbuffer)), ((
char *)
"getbuffer(obj, view, flags)"));
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 991, __pyx_L1_error)
37152 __Pyx_GOTREF(__pyx_t_1);
37153 if (PyDict_SetItem((PyObject *)__pyx_memoryviewslice_type->tp_dict, __pyx_n_s_pyx_getbuffer, __pyx_t_1) < 0) __PYX_ERR(0, 991, __pyx_L1_error)
37154 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
37155 PyType_Modified(__pyx_memoryviewslice_type);
37162 __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_15View_dot_MemoryView_1__pyx_unpickle_Enum, NULL, __pyx_n_s_View_MemoryView);
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
37163 __Pyx_GOTREF(__pyx_t_1);
37164 if (PyDict_SetItem(__pyx_d, __pyx_n_s_pyx_unpickle_Enum, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
37165 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
37179 __Pyx_XDECREF(__pyx_t_1);
37180 __Pyx_XDECREF(__pyx_t_2);
37183 __Pyx_AddTraceback(
"init cmeshTools", __pyx_clineno, __pyx_lineno, __pyx_filename);
37186 }
else if (!PyErr_Occurred()) {
37187 PyErr_SetString(PyExc_ImportError,
"init cmeshTools");
37190 __Pyx_RefNannyFinishContext();
37191 #if CYTHON_PEP489_MULTI_PHASE_INIT
37192 return (__pyx_m != NULL) ? 0 : -1;
37193 #elif PY_MAJOR_VERSION >= 3
37202 #if CYTHON_REFNANNY
37203 static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(
const char *modname) {
37204 PyObject *m = NULL, *p = NULL;
37206 m = PyImport_ImportModule(modname);
37208 p = PyObject_GetAttrString(m,
"RefNannyAPI");
37210 r = PyLong_AsVoidPtr(p);
37214 return (__Pyx_RefNannyAPIStruct *)
r;
37219 #if CYTHON_USE_TYPE_SLOTS
37220 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
37221 PyTypeObject* tp = Py_TYPE(obj);
37222 if (likely(tp->tp_getattro))
37223 return tp->tp_getattro(obj, attr_name);
37224 #if PY_MAJOR_VERSION < 3
37225 if (likely(tp->tp_getattr))
37226 return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
37228 return PyObject_GetAttr(obj, attr_name);
37233 static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
37234 PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
37235 if (unlikely(!result)) {
37236 PyErr_Format(PyExc_NameError,
37237 #
if PY_MAJOR_VERSION >= 3
37238 "name '%U' is not defined", name);
37240 "name '%.200s' is not defined", PyString_AS_STRING(name));
37247 static void __Pyx_RaiseArgtupleInvalid(
37248 const char* func_name,
37250 Py_ssize_t num_min,
37251 Py_ssize_t num_max,
37252 Py_ssize_t num_found)
37254 Py_ssize_t num_expected;
37255 const char *more_or_less;
37256 if (num_found < num_min) {
37257 num_expected = num_min;
37258 more_or_less =
"at least";
37260 num_expected = num_max;
37261 more_or_less =
"at most";
37264 more_or_less =
"exactly";
37266 PyErr_Format(PyExc_TypeError,
37267 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T
"d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T
"d given)",
37268 func_name, more_or_less, num_expected,
37269 (num_expected == 1) ?
"" :
"s", num_found);
37273 static int __Pyx_CheckKeywordStrings(
37275 const char* function_name,
37279 Py_ssize_t
pos = 0;
37280 #if CYTHON_COMPILING_IN_PYPY
37281 if (!kw_allowed && PyDict_Next(kwdict, &
pos, &key, 0))
37282 goto invalid_keyword;
37285 while (PyDict_Next(kwdict, &
pos, &key, 0)) {
37286 #if PY_MAJOR_VERSION < 3
37287 if (unlikely(!PyString_Check(key)))
37289 if (unlikely(!PyUnicode_Check(key)))
37290 goto invalid_keyword_type;
37292 if ((!kw_allowed) && unlikely(key))
37293 goto invalid_keyword;
37295 invalid_keyword_type:
37296 PyErr_Format(PyExc_TypeError,
37297 "%.200s() keywords must be strings", function_name);
37301 PyErr_Format(PyExc_TypeError,
37302 #
if PY_MAJOR_VERSION < 3
37303 "%.200s() got an unexpected keyword argument '%.200s'",
37304 function_name, PyString_AsString(key));
37306 "%s() got an unexpected keyword argument '%U'",
37307 function_name, key);
37313 #if CYTHON_USE_DICT_VERSIONS
37314 static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
37316 static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
37320 #if !CYTHON_AVOID_BORROWED_REFS
37321 #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
37322 result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash);
37323 __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
37324 if (likely(result)) {
37325 return __Pyx_NewRef(result);
37326 }
else if (unlikely(PyErr_Occurred())) {
37330 result = PyDict_GetItem(__pyx_d, name);
37331 __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
37332 if (likely(result)) {
37333 return __Pyx_NewRef(result);
37337 result = PyObject_GetItem(__pyx_d, name);
37338 __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
37339 if (likely(result)) {
37340 return __Pyx_NewRef(result);
37344 return __Pyx_GetBuiltinName(name);
37348 #if CYTHON_FAST_PYCCALL
37349 static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) {
37350 PyCFunctionObject *func = (PyCFunctionObject*)func_obj;
37351 PyCFunction meth = PyCFunction_GET_FUNCTION(func);
37352 PyObject *
self = PyCFunction_GET_SELF(func);
37353 int flags = PyCFunction_GET_FLAGS(func);
37354 assert(PyCFunction_Check(func));
37355 assert(METH_FASTCALL == (flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)));
37356 assert(nargs >= 0);
37357 assert(nargs == 0 || args != NULL);
37361 assert(!PyErr_Occurred());
37362 if ((PY_VERSION_HEX < 0x030700A0) || unlikely(flags & METH_KEYWORDS)) {
37363 return (*((__Pyx_PyCFunctionFastWithKeywords)(
void*)meth)) (
self, args, nargs, NULL);
37365 return (*((__Pyx_PyCFunctionFast)(
void*)meth)) (
self, args, nargs);
37371 #if CYTHON_FAST_PYCALL
37372 static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na,
37373 PyObject *globals) {
37375 PyThreadState *tstate = __Pyx_PyThreadState_Current;
37376 PyObject **fastlocals;
37379 assert(globals != NULL);
37384 assert(tstate != NULL);
37385 f = PyFrame_New(tstate, co, globals, NULL);
37389 fastlocals = __Pyx_PyFrame_GetLocalsplus(
f);
37390 for (i = 0; i < na; i++) {
37392 fastlocals[i] = *args++;
37394 result = PyEval_EvalFrameEx(
f,0);
37395 ++tstate->recursion_depth;
37397 --tstate->recursion_depth;
37400 #if 1 || PY_VERSION_HEX < 0x030600B1
37401 static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args,
int nargs, PyObject *kwargs) {
37402 PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
37403 PyObject *globals = PyFunction_GET_GLOBALS(func);
37404 PyObject *argdefs = PyFunction_GET_DEFAULTS(func);
37406 #if PY_MAJOR_VERSION >= 3
37409 PyObject *kwtuple, **k;
37414 assert(kwargs == NULL || PyDict_Check(kwargs));
37415 nk = kwargs ? PyDict_Size(kwargs) : 0;
37416 if (Py_EnterRecursiveCall((
char*)
" while calling a Python object")) {
37420 #
if PY_MAJOR_VERSION >= 3
37421 co->co_kwonlyargcount == 0 &&
37423 likely(kwargs == NULL || nk == 0) &&
37424 co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) {
37425 if (argdefs == NULL && co->co_argcount == nargs) {
37426 result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals);
37429 else if (nargs == 0 && argdefs != NULL
37430 && co->co_argcount == Py_SIZE(argdefs)) {
37433 args = &PyTuple_GET_ITEM(argdefs, 0);
37434 result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals);
37438 if (kwargs != NULL) {
37440 kwtuple = PyTuple_New(2 * nk);
37441 if (kwtuple == NULL) {
37445 k = &PyTuple_GET_ITEM(kwtuple, 0);
37447 while (PyDict_Next(kwargs, &
pos, &k[i], &k[i+1])) {
37458 closure = PyFunction_GET_CLOSURE(func);
37459 #if PY_MAJOR_VERSION >= 3
37460 kwdefs = PyFunction_GET_KW_DEFAULTS(func);
37462 if (argdefs != NULL) {
37463 d = &PyTuple_GET_ITEM(argdefs, 0);
37464 nd = Py_SIZE(argdefs);
37470 #if PY_MAJOR_VERSION >= 3
37471 result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
37474 d, (
int)nd, kwdefs, closure);
37476 result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
37479 d, (
int)nd, closure);
37481 Py_XDECREF(kwtuple);
37483 Py_LeaveRecursiveCall();
37490 #if CYTHON_COMPILING_IN_CPYTHON
37491 static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
37493 ternaryfunc call = func->ob_type->tp_call;
37494 if (unlikely(!call))
37495 return PyObject_Call(func, arg, kw);
37496 if (unlikely(Py_EnterRecursiveCall((
char*)
" while calling a Python object")))
37498 result = (*call)(func, arg, kw);
37499 Py_LeaveRecursiveCall();
37500 if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
37503 "NULL result without error in PyObject_Call");
37510 static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject*
function, PyObject* arg1, PyObject* arg2) {
37511 PyObject *args, *result = NULL;
37512 #if CYTHON_FAST_PYCALL
37513 if (PyFunction_Check(
function)) {
37514 PyObject *args[2] = {arg1, arg2};
37515 return __Pyx_PyFunction_FastCall(
function, args, 2);
37518 #if CYTHON_FAST_PYCCALL
37519 if (__Pyx_PyFastCFunction_Check(
function)) {
37520 PyObject *args[2] = {arg1, arg2};
37521 return __Pyx_PyCFunction_FastCall(
function, args, 2);
37524 args = PyTuple_New(2);
37525 if (unlikely(!args))
goto done;
37527 PyTuple_SET_ITEM(args, 0, arg1);
37529 PyTuple_SET_ITEM(args, 1, arg2);
37530 Py_INCREF(
function);
37531 result = __Pyx_PyObject_Call(
function, args, NULL);
37533 Py_DECREF(
function);
37539 #if CYTHON_COMPILING_IN_CPYTHON
37540 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
37541 PyObject *
self, *result;
37543 cfunc = PyCFunction_GET_FUNCTION(func);
37544 self = PyCFunction_GET_SELF(func);
37545 if (unlikely(Py_EnterRecursiveCall((
char*)
" while calling a Python object")))
37547 result = cfunc(
self, arg);
37548 Py_LeaveRecursiveCall();
37549 if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
37552 "NULL result without error in PyObject_Call");
37559 #if CYTHON_COMPILING_IN_CPYTHON
37560 static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) {
37562 PyObject *args = PyTuple_New(1);
37563 if (unlikely(!args))
return NULL;
37565 PyTuple_SET_ITEM(args, 0, arg);
37566 result = __Pyx_PyObject_Call(func, args, NULL);
37570 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
37571 #if CYTHON_FAST_PYCALL
37572 if (PyFunction_Check(func)) {
37573 return __Pyx_PyFunction_FastCall(func, &arg, 1);
37576 if (likely(PyCFunction_Check(func))) {
37577 if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
37578 return __Pyx_PyObject_CallMethO(func, arg);
37579 #if CYTHON_FAST_PYCCALL
37580 }
else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) {
37581 return __Pyx_PyCFunction_FastCall(func, &arg, 1);
37585 return __Pyx__PyObject_CallOneArg(func, arg);
37588 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
37590 PyObject *args = PyTuple_Pack(1, arg);
37591 if (unlikely(!args))
return NULL;
37592 result = __Pyx_PyObject_Call(func, args, NULL);
37599 static CYTHON_INLINE
int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
37600 if (unlikely(!type)) {
37601 PyErr_SetString(PyExc_SystemError,
"Missing type object");
37604 if (likely(__Pyx_TypeCheck(obj, type)))
37606 PyErr_Format(PyExc_TypeError,
"Cannot convert %.200s to %.200s",
37607 Py_TYPE(obj)->tp_name, type->tp_name);
37612 #if CYTHON_FAST_THREAD_STATE
37613 static CYTHON_INLINE
void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
37614 PyObject *tmp_type, *tmp_value, *tmp_tb;
37615 tmp_type = tstate->curexc_type;
37616 tmp_value = tstate->curexc_value;
37617 tmp_tb = tstate->curexc_traceback;
37618 tstate->curexc_type = type;
37619 tstate->curexc_value = value;
37620 tstate->curexc_traceback = tb;
37621 Py_XDECREF(tmp_type);
37622 Py_XDECREF(tmp_value);
37623 Py_XDECREF(tmp_tb);
37625 static CYTHON_INLINE
void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
37626 *type = tstate->curexc_type;
37627 *value = tstate->curexc_value;
37628 *tb = tstate->curexc_traceback;
37629 tstate->curexc_type = 0;
37630 tstate->curexc_value = 0;
37631 tstate->curexc_traceback = 0;
37636 #if PY_MAJOR_VERSION < 3
37637 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
37638 CYTHON_UNUSED PyObject *cause) {
37639 __Pyx_PyThreadState_declare
37641 if (!value || value == Py_None)
37645 if (!tb || tb == Py_None)
37649 if (!PyTraceBack_Check(tb)) {
37650 PyErr_SetString(PyExc_TypeError,
37651 "raise: arg 3 must be a traceback or None");
37655 if (PyType_Check(type)) {
37656 #if CYTHON_COMPILING_IN_PYPY
37658 Py_INCREF(Py_None);
37662 PyErr_NormalizeException(&type, &value, &tb);
37665 PyErr_SetString(PyExc_TypeError,
37666 "instance exception may not have a separate value");
37670 type = (PyObject*) Py_TYPE(type);
37672 if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
37673 PyErr_SetString(PyExc_TypeError,
37674 "raise: exception class must be a subclass of BaseException");
37678 __Pyx_PyThreadState_assign
37679 __Pyx_ErrRestore(type, value, tb);
37688 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
37689 PyObject* owned_instance = NULL;
37690 if (tb == Py_None) {
37692 }
else if (tb && !PyTraceBack_Check(tb)) {
37693 PyErr_SetString(PyExc_TypeError,
37694 "raise: arg 3 must be a traceback or None");
37697 if (value == Py_None)
37699 if (PyExceptionInstance_Check(type)) {
37701 PyErr_SetString(PyExc_TypeError,
37702 "instance exception may not have a separate value");
37706 type = (PyObject*) Py_TYPE(value);
37707 }
else if (PyExceptionClass_Check(type)) {
37708 PyObject *instance_class = NULL;
37709 if (value && PyExceptionInstance_Check(value)) {
37710 instance_class = (PyObject*) Py_TYPE(value);
37711 if (instance_class != type) {
37712 int is_subclass = PyObject_IsSubclass(instance_class, type);
37713 if (!is_subclass) {
37714 instance_class = NULL;
37715 }
else if (unlikely(is_subclass == -1)) {
37718 type = instance_class;
37722 if (!instance_class) {
37725 args = PyTuple_New(0);
37726 else if (PyTuple_Check(value)) {
37730 args = PyTuple_Pack(1, value);
37733 owned_instance = PyObject_Call(type, args, NULL);
37735 if (!owned_instance)
37737 value = owned_instance;
37738 if (!PyExceptionInstance_Check(value)) {
37739 PyErr_Format(PyExc_TypeError,
37740 "calling %R should have returned an instance of "
37741 "BaseException, not %R",
37742 type, Py_TYPE(value));
37747 PyErr_SetString(PyExc_TypeError,
37748 "raise: exception class must be a subclass of BaseException");
37752 PyObject *fixed_cause;
37753 if (cause == Py_None) {
37754 fixed_cause = NULL;
37755 }
else if (PyExceptionClass_Check(cause)) {
37756 fixed_cause = PyObject_CallObject(cause, NULL);
37757 if (fixed_cause == NULL)
37759 }
else if (PyExceptionInstance_Check(cause)) {
37760 fixed_cause = cause;
37761 Py_INCREF(fixed_cause);
37763 PyErr_SetString(PyExc_TypeError,
37764 "exception causes must derive from "
37768 PyException_SetCause(value, fixed_cause);
37770 PyErr_SetObject(type, value);
37772 #if CYTHON_COMPILING_IN_PYPY
37773 PyObject *tmp_type, *tmp_value, *tmp_tb;
37774 PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
37776 PyErr_Restore(tmp_type, tmp_value, tb);
37777 Py_XDECREF(tmp_tb);
37779 PyThreadState *tstate = __Pyx_PyThreadState_Current;
37780 PyObject* tmp_tb = tstate->curexc_traceback;
37781 if (tb != tmp_tb) {
37783 tstate->curexc_traceback = tb;
37784 Py_XDECREF(tmp_tb);
37789 Py_XDECREF(owned_instance);
37795 #if CYTHON_COMPILING_IN_CPYTHON
37796 static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
37797 #if CYTHON_FAST_PYCALL
37798 if (PyFunction_Check(func)) {
37799 return __Pyx_PyFunction_FastCall(func, NULL, 0);
37802 #ifdef __Pyx_CyFunction_USED
37803 if (likely(PyCFunction_Check(func) || __Pyx_CyFunction_Check(func)))
37805 if (likely(PyCFunction_Check(func)))
37808 if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) {
37809 return __Pyx_PyObject_CallMethO(func, NULL);
37812 return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL);
37817 static void __Pyx_RaiseDoubleKeywordsError(
37818 const char* func_name,
37821 PyErr_Format(PyExc_TypeError,
37822 #
if PY_MAJOR_VERSION >= 3
37823 "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
37825 "%s() got multiple values for keyword argument '%s'", func_name,
37826 PyString_AsString(kw_name));
37831 static int __Pyx_ParseOptionalKeywords(
37833 PyObject **argnames[],
37835 PyObject *values[],
37836 Py_ssize_t num_pos_args,
37837 const char* function_name)
37839 PyObject *key = 0, *value = 0;
37840 Py_ssize_t
pos = 0;
37842 PyObject*** first_kw_arg = argnames + num_pos_args;
37843 while (PyDict_Next(kwds, &
pos, &key, &value)) {
37844 name = first_kw_arg;
37845 while (*name && (**name != key)) name++;
37847 values[name-argnames] = value;
37850 name = first_kw_arg;
37851 #if PY_MAJOR_VERSION < 3
37852 if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) {
37854 if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
37855 && _PyString_Eq(**name, key)) {
37856 values[name-argnames] = value;
37861 if (*name)
continue;
37863 PyObject*** argname = argnames;
37864 while (argname != first_kw_arg) {
37865 if ((**argname == key) || (
37866 (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
37867 && _PyString_Eq(**argname, key))) {
37868 goto arg_passed_twice;
37875 if (likely(PyUnicode_Check(key))) {
37877 int cmp = (**name == key) ? 0 :
37878 #
if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
37879 (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
37881 PyUnicode_Compare(**name, key);
37882 if (cmp < 0 && unlikely(PyErr_Occurred()))
goto bad;
37884 values[name-argnames] = value;
37889 if (*name)
continue;
37891 PyObject*** argname = argnames;
37892 while (argname != first_kw_arg) {
37893 int cmp = (**argname == key) ? 0 :
37894 #
if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
37895 (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
37897 PyUnicode_Compare(**argname, key);
37898 if (cmp < 0 && unlikely(PyErr_Occurred()))
goto bad;
37899 if (cmp == 0)
goto arg_passed_twice;
37904 goto invalid_keyword_type;
37906 if (unlikely(PyDict_SetItem(kwds2, key, value)))
goto bad;
37908 goto invalid_keyword;
37913 __Pyx_RaiseDoubleKeywordsError(function_name, key);
37915 invalid_keyword_type:
37916 PyErr_Format(PyExc_TypeError,
37917 "%.200s() keywords must be strings", function_name);
37920 PyErr_Format(PyExc_TypeError,
37921 #
if PY_MAJOR_VERSION < 3
37922 "%.200s() got an unexpected keyword argument '%.200s'",
37923 function_name, PyString_AsString(key));
37925 "%s() got an unexpected keyword argument '%U'",
37926 function_name, key);
37933 static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type,
const char *name,
int exact)
37935 if (unlikely(!type)) {
37936 PyErr_SetString(PyExc_SystemError,
"Missing type object");
37940 #if PY_MAJOR_VERSION == 2
37941 if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj)))
return 1;
37945 if (likely(__Pyx_TypeCheck(obj, type)))
return 1;
37947 PyErr_Format(PyExc_TypeError,
37948 "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)",
37949 name, type->tp_name, Py_TYPE(obj)->tp_name);
37954 #if !CYTHON_COMPILING_IN_PYPY
37955 static PyObject* __Pyx_PyInt_SubtractObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED
long intval, CYTHON_UNUSED
int inplace) {
37956 #if PY_MAJOR_VERSION < 3
37957 if (likely(PyInt_CheckExact(op1))) {
37958 const long b = intval;
37960 long a = PyInt_AS_LONG(op1);
37961 x = (long)((
unsigned long)a - b);
37962 if (likely((x^a) >= 0 || (x^~b) >= 0))
37963 return PyInt_FromLong(x);
37964 return PyLong_Type.tp_as_number->nb_subtract(op1, op2);
37967 #if CYTHON_USE_PYLONG_INTERNALS
37968 if (likely(PyLong_CheckExact(op1))) {
37969 const long b = intval;
37971 #ifdef HAVE_LONG_LONG
37972 const PY_LONG_LONG llb = intval;
37973 PY_LONG_LONG lla, llx;
37975 const digit* digits = ((PyLongObject*)op1)->ob_digit;
37976 const Py_ssize_t size = Py_SIZE(op1);
37977 if (likely(__Pyx_sst_abs(size) <= 1)) {
37978 a = likely(size) ? digits[0] : 0;
37979 if (size == -1) a = -a;
37983 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
37984 a = -(long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
37986 #ifdef HAVE_LONG_LONG
37987 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
37988 lla = -(PY_LONG_LONG) (((((
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
37992 CYTHON_FALLTHROUGH;
37994 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
37995 a = (long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
37997 #ifdef HAVE_LONG_LONG
37998 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
37999 lla = (PY_LONG_LONG) (((((
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
38003 CYTHON_FALLTHROUGH;
38005 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
38006 a = -(long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
38008 #ifdef HAVE_LONG_LONG
38009 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
38010 lla = -(PY_LONG_LONG) (((((((
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
38014 CYTHON_FALLTHROUGH;
38016 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
38017 a = (long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
38019 #ifdef HAVE_LONG_LONG
38020 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
38021 lla = (PY_LONG_LONG) (((((((
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
38025 CYTHON_FALLTHROUGH;
38027 if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
38028 a = -(long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
38030 #ifdef HAVE_LONG_LONG
38031 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
38032 lla = -(PY_LONG_LONG) (((((((((
unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
38036 CYTHON_FALLTHROUGH;
38038 if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
38039 a = (long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
38041 #ifdef HAVE_LONG_LONG
38042 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
38043 lla = (PY_LONG_LONG) (((((((((
unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
38047 CYTHON_FALLTHROUGH;
38048 default:
return PyLong_Type.tp_as_number->nb_subtract(op1, op2);
38052 return PyLong_FromLong(x);
38053 #ifdef HAVE_LONG_LONG
38056 return PyLong_FromLongLong(llx);
38062 if (PyFloat_CheckExact(op1)) {
38063 const long b = intval;
38064 double a = PyFloat_AS_DOUBLE(op1);
38066 PyFPE_START_PROTECT(
"subtract",
return NULL)
38067 result = ((double)a) - (double)b;
38068 PyFPE_END_PROTECT(result)
38069 return PyFloat_FromDouble(result);
38071 return (inplace ? PyNumber_InPlaceSubtract : PyNumber_Subtract)(op1, op2);
38076 static CYTHON_INLINE PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED
long intval, CYTHON_UNUSED
long inplace) {
38080 #if PY_MAJOR_VERSION < 3
38081 if (likely(PyInt_CheckExact(op1))) {
38082 const long b = intval;
38083 long a = PyInt_AS_LONG(op1);
38084 if (a == b) Py_RETURN_TRUE;
else Py_RETURN_FALSE;
38087 #if CYTHON_USE_PYLONG_INTERNALS
38088 if (likely(PyLong_CheckExact(op1))) {
38090 unsigned long uintval;
38091 Py_ssize_t size = Py_SIZE(op1);
38092 const digit* digits = ((PyLongObject*)op1)->ob_digit;
38094 if (size == 0) Py_RETURN_TRUE;
else Py_RETURN_FALSE;
38095 }
else if (intval < 0) {
38104 uintval = (
unsigned long) intval;
38105 #if PyLong_SHIFT * 4 < SIZEOF_LONG*8
38106 if (uintval >> (PyLong_SHIFT * 4)) {
38107 unequal = (size != 5) || (digits[0] != (uintval & (
unsigned long) PyLong_MASK))
38108 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[4] != ((uintval >> (4 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK));
38111 #if PyLong_SHIFT * 3 < SIZEOF_LONG*8
38112 if (uintval >> (PyLong_SHIFT * 3)) {
38113 unequal = (size != 4) || (digits[0] != (uintval & (
unsigned long) PyLong_MASK))
38114 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK));
38117 #if PyLong_SHIFT * 2 < SIZEOF_LONG*8
38118 if (uintval >> (PyLong_SHIFT * 2)) {
38119 unequal = (size != 3) || (digits[0] != (uintval & (
unsigned long) PyLong_MASK))
38120 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK));
38123 #if PyLong_SHIFT * 1 < SIZEOF_LONG*8
38124 if (uintval >> (PyLong_SHIFT * 1)) {
38125 unequal = (size != 2) || (digits[0] != (uintval & (
unsigned long) PyLong_MASK))
38126 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (
unsigned long) PyLong_MASK));
38129 unequal = (size != 1) || (((
unsigned long) digits[0]) != (uintval & (
unsigned long) PyLong_MASK));
38130 if (unequal == 0) Py_RETURN_TRUE;
else Py_RETURN_FALSE;
38133 if (PyFloat_CheckExact(op1)) {
38134 const long b = intval;
38135 double a = PyFloat_AS_DOUBLE(op1);
38136 if ((
double)a == (
double)b) Py_RETURN_TRUE;
else Py_RETURN_FALSE;
38139 PyObject_RichCompare(op1, op2, Py_EQ));
38143 static void __Pyx_WriteUnraisable(
const char *name, CYTHON_UNUSED
int clineno,
38144 CYTHON_UNUSED
int lineno, CYTHON_UNUSED
const char *filename,
38145 int full_traceback, CYTHON_UNUSED
int nogil) {
38146 PyObject *old_exc, *old_val, *old_tb;
38148 __Pyx_PyThreadState_declare
38150 PyGILState_STATE state;
38152 state = PyGILState_Ensure();
38154 else state = (PyGILState_STATE)-1;
38157 __Pyx_PyThreadState_assign
38158 __Pyx_ErrFetch(&old_exc, &old_val, &old_tb);
38159 if (full_traceback) {
38160 Py_XINCREF(old_exc);
38161 Py_XINCREF(old_val);
38162 Py_XINCREF(old_tb);
38163 __Pyx_ErrRestore(old_exc, old_val, old_tb);
38166 #if PY_MAJOR_VERSION < 3
38167 ctx = PyString_FromString(name);
38169 ctx = PyUnicode_FromString(name);
38171 __Pyx_ErrRestore(old_exc, old_val, old_tb);
38173 PyErr_WriteUnraisable(Py_None);
38175 PyErr_WriteUnraisable(ctx);
38180 PyGILState_Release(state);
38185 #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
38186 static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
38188 value = PyDict_GetItemWithError(d, key);
38189 if (unlikely(!value)) {
38190 if (!PyErr_Occurred()) {
38191 if (unlikely(PyTuple_Check(key))) {
38192 PyObject* args = PyTuple_Pack(1, key);
38193 if (likely(args)) {
38194 PyErr_SetObject(PyExc_KeyError, args);
38198 PyErr_SetObject(PyExc_KeyError, key);
38209 static CYTHON_INLINE
void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
38210 PyErr_Format(PyExc_ValueError,
38211 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T
"d)", expected);
38215 static CYTHON_INLINE
void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
38216 PyErr_Format(PyExc_ValueError,
38217 "need more than %" CYTHON_FORMAT_SSIZE_T
"d value%.1s to unpack",
38218 index, (index == 1) ?
"" :
"s");
38222 static CYTHON_INLINE
void __Pyx_RaiseNoneNotIterableError(
void) {
38223 PyErr_SetString(PyExc_TypeError,
"'NoneType' object is not iterable");
38227 #if CYTHON_USE_EXC_INFO_STACK
38228 static _PyErr_StackItem *
38229 __Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
38231 _PyErr_StackItem *exc_info = tstate->exc_info;
38232 while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
38233 exc_info->previous_item != NULL)
38235 exc_info = exc_info->previous_item;
38242 #if CYTHON_FAST_THREAD_STATE
38243 static CYTHON_INLINE
void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
38244 #if CYTHON_USE_EXC_INFO_STACK
38245 _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
38246 *type = exc_info->exc_type;
38247 *value = exc_info->exc_value;
38248 *tb = exc_info->exc_traceback;
38250 *type = tstate->exc_type;
38251 *value = tstate->exc_value;
38252 *tb = tstate->exc_traceback;
38255 Py_XINCREF(*value);
38258 static CYTHON_INLINE
void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
38259 PyObject *tmp_type, *tmp_value, *tmp_tb;
38260 #if CYTHON_USE_EXC_INFO_STACK
38261 _PyErr_StackItem *exc_info = tstate->exc_info;
38262 tmp_type = exc_info->exc_type;
38263 tmp_value = exc_info->exc_value;
38264 tmp_tb = exc_info->exc_traceback;
38265 exc_info->exc_type = type;
38266 exc_info->exc_value = value;
38267 exc_info->exc_traceback = tb;
38269 tmp_type = tstate->exc_type;
38270 tmp_value = tstate->exc_value;
38271 tmp_tb = tstate->exc_traceback;
38272 tstate->exc_type = type;
38273 tstate->exc_value = value;
38274 tstate->exc_traceback = tb;
38276 Py_XDECREF(tmp_type);
38277 Py_XDECREF(tmp_value);
38278 Py_XDECREF(tmp_tb);
38283 #if CYTHON_FAST_THREAD_STATE
38284 static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
38286 n = PyTuple_GET_SIZE(tuple);
38287 #if PY_MAJOR_VERSION >= 3
38288 for (i=0; i<
n; i++) {
38289 if (exc_type == PyTuple_GET_ITEM(tuple, i))
return 1;
38292 for (i=0; i<
n; i++) {
38293 if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i)))
return 1;
38297 static CYTHON_INLINE
int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
38298 PyObject *exc_type = tstate->curexc_type;
38299 if (exc_type == err)
return 1;
38300 if (unlikely(!exc_type))
return 0;
38301 if (unlikely(PyTuple_Check(err)))
38302 return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
38303 return __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
38308 #if CYTHON_FAST_THREAD_STATE
38309 static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
38311 static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
38314 PyObject *local_type, *local_value, *local_tb;
38315 #if CYTHON_FAST_THREAD_STATE
38316 PyObject *tmp_type, *tmp_value, *tmp_tb;
38317 local_type = tstate->curexc_type;
38318 local_value = tstate->curexc_value;
38319 local_tb = tstate->curexc_traceback;
38320 tstate->curexc_type = 0;
38321 tstate->curexc_value = 0;
38322 tstate->curexc_traceback = 0;
38324 PyErr_Fetch(&local_type, &local_value, &local_tb);
38326 PyErr_NormalizeException(&local_type, &local_value, &local_tb);
38327 #if CYTHON_FAST_THREAD_STATE
38328 if (unlikely(tstate->curexc_type))
38330 if (unlikely(PyErr_Occurred()))
38333 #if PY_MAJOR_VERSION >= 3
38335 if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
38339 Py_XINCREF(local_tb);
38340 Py_XINCREF(local_type);
38341 Py_XINCREF(local_value);
38342 *type = local_type;
38343 *value = local_value;
38345 #if CYTHON_FAST_THREAD_STATE
38346 #if CYTHON_USE_EXC_INFO_STACK
38348 _PyErr_StackItem *exc_info = tstate->exc_info;
38349 tmp_type = exc_info->exc_type;
38350 tmp_value = exc_info->exc_value;
38351 tmp_tb = exc_info->exc_traceback;
38352 exc_info->exc_type = local_type;
38353 exc_info->exc_value = local_value;
38354 exc_info->exc_traceback = local_tb;
38357 tmp_type = tstate->exc_type;
38358 tmp_value = tstate->exc_value;
38359 tmp_tb = tstate->exc_traceback;
38360 tstate->exc_type = local_type;
38361 tstate->exc_value = local_value;
38362 tstate->exc_traceback = local_tb;
38364 Py_XDECREF(tmp_type);
38365 Py_XDECREF(tmp_value);
38366 Py_XDECREF(tmp_tb);
38368 PyErr_SetExcInfo(local_type, local_value, local_tb);
38375 Py_XDECREF(local_type);
38376 Py_XDECREF(local_value);
38377 Py_XDECREF(local_tb);
38382 static CYTHON_INLINE
int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2,
int equals) {
38383 #if CYTHON_COMPILING_IN_PYPY
38384 return PyObject_RichCompareBool(s1, s2, equals);
38387 return (equals == Py_EQ);
38388 }
else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) {
38389 const char *ps1, *ps2;
38390 Py_ssize_t length = PyBytes_GET_SIZE(s1);
38391 if (length != PyBytes_GET_SIZE(s2))
38392 return (equals == Py_NE);
38393 ps1 = PyBytes_AS_STRING(s1);
38394 ps2 = PyBytes_AS_STRING(s2);
38395 if (ps1[0] != ps2[0]) {
38396 return (equals == Py_NE);
38397 }
else if (length == 1) {
38398 return (equals == Py_EQ);
38401 #if CYTHON_USE_UNICODE_INTERNALS
38402 Py_hash_t hash1, hash2;
38403 hash1 = ((PyBytesObject*)s1)->ob_shash;
38404 hash2 = ((PyBytesObject*)s2)->ob_shash;
38405 if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
38406 return (equals == Py_NE);
38409 result = memcmp(ps1, ps2, (
size_t)length);
38410 return (equals == Py_EQ) ? (result == 0) : (result != 0);
38412 }
else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
38413 return (equals == Py_NE);
38414 }
else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
38415 return (equals == Py_NE);
38418 PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
38421 result = __Pyx_PyObject_IsTrue(py_result);
38422 Py_DECREF(py_result);
38429 static CYTHON_INLINE
int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2,
int equals) {
38430 #if CYTHON_COMPILING_IN_PYPY
38431 return PyObject_RichCompareBool(s1, s2, equals);
38433 #if PY_MAJOR_VERSION < 3
38434 PyObject* owned_ref = NULL;
38436 int s1_is_unicode, s2_is_unicode;
38440 s1_is_unicode = PyUnicode_CheckExact(s1);
38441 s2_is_unicode = PyUnicode_CheckExact(s2);
38442 #if PY_MAJOR_VERSION < 3
38443 if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) {
38444 owned_ref = PyUnicode_FromObject(s2);
38445 if (unlikely(!owned_ref))
38449 }
else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) {
38450 owned_ref = PyUnicode_FromObject(s1);
38451 if (unlikely(!owned_ref))
38455 }
else if (((!s2_is_unicode) & (!s1_is_unicode))) {
38456 return __Pyx_PyBytes_Equals(s1, s2, equals);
38459 if (s1_is_unicode & s2_is_unicode) {
38462 void *data1, *data2;
38463 if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
38465 length = __Pyx_PyUnicode_GET_LENGTH(s1);
38466 if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) {
38469 #if CYTHON_USE_UNICODE_INTERNALS
38471 Py_hash_t hash1, hash2;
38472 #if CYTHON_PEP393_ENABLED
38473 hash1 = ((PyASCIIObject*)s1)->hash;
38474 hash2 = ((PyASCIIObject*)s2)->hash;
38476 hash1 = ((PyUnicodeObject*)s1)->hash;
38477 hash2 = ((PyUnicodeObject*)s2)->hash;
38479 if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
38484 kind = __Pyx_PyUnicode_KIND(s1);
38485 if (kind != __Pyx_PyUnicode_KIND(s2)) {
38488 data1 = __Pyx_PyUnicode_DATA(s1);
38489 data2 = __Pyx_PyUnicode_DATA(s2);
38490 if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) {
38492 }
else if (length == 1) {
38495 int result = memcmp(data1, data2, (
size_t)(length * kind));
38496 #if PY_MAJOR_VERSION < 3
38497 Py_XDECREF(owned_ref);
38499 return (equals == Py_EQ) ? (result == 0) : (result != 0);
38501 }
else if ((s1 == Py_None) & s2_is_unicode) {
38503 }
else if ((s2 == Py_None) & s1_is_unicode) {
38507 PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
38508 #if PY_MAJOR_VERSION < 3
38509 Py_XDECREF(owned_ref);
38513 result = __Pyx_PyObject_IsTrue(py_result);
38514 Py_DECREF(py_result);
38518 #if PY_MAJOR_VERSION < 3
38519 Py_XDECREF(owned_ref);
38521 return (equals == Py_EQ);
38523 #if PY_MAJOR_VERSION < 3
38524 Py_XDECREF(owned_ref);
38526 return (equals == Py_NE);
38531 static CYTHON_INLINE Py_ssize_t __Pyx_div_Py_ssize_t(Py_ssize_t a, Py_ssize_t b) {
38532 Py_ssize_t
q = a / b;
38533 Py_ssize_t
r = a -
q*b;
38534 q -= ((
r != 0) & ((
r ^ b) < 0));
38539 static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *o, PyObject *
n) {
38540 #if CYTHON_USE_TYPE_SLOTS
38541 #if PY_MAJOR_VERSION >= 3
38542 if (likely(PyUnicode_Check(
n)))
38544 if (likely(PyString_Check(
n)))
38546 return __Pyx_PyObject_GetAttrStr(o,
n);
38548 return PyObject_GetAttr(o,
n);
38552 static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
38554 if (!j)
return NULL;
38555 r = PyObject_GetItem(o, j);
38559 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
38560 CYTHON_NCP_UNUSED
int wraparound,
38561 CYTHON_NCP_UNUSED
int boundscheck) {
38562 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
38563 Py_ssize_t wrapped_i = i;
38564 if (wraparound & unlikely(i < 0)) {
38565 wrapped_i += PyList_GET_SIZE(o);
38567 if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
38568 PyObject *
r = PyList_GET_ITEM(o, wrapped_i);
38572 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
38574 return PySequence_GetItem(o, i);
38577 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
38578 CYTHON_NCP_UNUSED
int wraparound,
38579 CYTHON_NCP_UNUSED
int boundscheck) {
38580 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
38581 Py_ssize_t wrapped_i = i;
38582 if (wraparound & unlikely(i < 0)) {
38583 wrapped_i += PyTuple_GET_SIZE(o);
38585 if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
38586 PyObject *
r = PyTuple_GET_ITEM(o, wrapped_i);
38590 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
38592 return PySequence_GetItem(o, i);
38595 static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
int is_list,
38596 CYTHON_NCP_UNUSED
int wraparound,
38597 CYTHON_NCP_UNUSED
int boundscheck) {
38598 #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
38599 if (is_list || PyList_CheckExact(o)) {
38600 Py_ssize_t
n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
38601 if ((!boundscheck) || (likely(__Pyx_is_valid_index(
n, PyList_GET_SIZE(o))))) {
38602 PyObject *
r = PyList_GET_ITEM(o,
n);
38607 else if (PyTuple_CheckExact(o)) {
38608 Py_ssize_t
n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
38609 if ((!boundscheck) || likely(__Pyx_is_valid_index(
n, PyTuple_GET_SIZE(o)))) {
38610 PyObject *
r = PyTuple_GET_ITEM(o,
n);
38615 PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
38616 if (likely(m && m->sq_item)) {
38617 if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
38618 Py_ssize_t l = m->sq_length(o);
38619 if (likely(l >= 0)) {
38622 if (!PyErr_ExceptionMatches(PyExc_OverflowError))
38627 return m->sq_item(o, i);
38631 if (is_list || PySequence_Check(o)) {
38632 return PySequence_GetItem(o, i);
38635 return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
38639 #if CYTHON_USE_TYPE_SLOTS
38640 static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject* index) {
38642 Py_ssize_t key_value;
38643 PySequenceMethods *m = Py_TYPE(obj)->tp_as_sequence;
38644 if (unlikely(!(m && m->sq_item))) {
38645 PyErr_Format(PyExc_TypeError,
"'%.200s' object is not subscriptable", Py_TYPE(obj)->tp_name);
38648 key_value = __Pyx_PyIndex_AsSsize_t(index);
38649 if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) {
38650 return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1);
38652 if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) {
38654 PyErr_Format(PyExc_IndexError,
"cannot fit '%.200s' into an index-sized integer", Py_TYPE(index)->tp_name);
38658 static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key) {
38659 PyMappingMethods *m = Py_TYPE(obj)->tp_as_mapping;
38660 if (likely(m && m->mp_subscript)) {
38661 return m->mp_subscript(obj, key);
38663 return __Pyx_PyObject_GetIndex(obj, key);
38668 static CYTHON_INLINE PyObject* __Pyx_decode_c_string(
38669 const char* cstring, Py_ssize_t start, Py_ssize_t stop,
38670 const char* encoding,
const char* errors,
38671 PyObject* (*decode_func)(
const char *
s, Py_ssize_t size,
const char *errors)) {
38673 if (unlikely((start < 0) | (stop < 0))) {
38674 size_t slen = strlen(cstring);
38675 if (unlikely(slen > (
size_t) PY_SSIZE_T_MAX)) {
38676 PyErr_SetString(PyExc_OverflowError,
38677 "c-string too long to convert to Python");
38680 length = (Py_ssize_t) slen;
38689 length = stop - start;
38690 if (unlikely(length <= 0))
38691 return PyUnicode_FromUnicode(NULL, 0);
38694 return decode_func(cstring, length, errors);
38696 return PyUnicode_Decode(cstring, length, encoding, errors);
38701 static PyObject *__Pyx_GetAttr3Default(PyObject *d) {
38702 __Pyx_PyThreadState_declare
38703 __Pyx_PyThreadState_assign
38704 if (unlikely(!__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
38706 __Pyx_PyErr_Clear();
38710 static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *
n, PyObject *d) {
38711 PyObject *
r = __Pyx_GetAttr(o,
n);
38712 return (likely(
r)) ?
r : __Pyx_GetAttr3Default(d);
38716 #if CYTHON_FAST_THREAD_STATE
38717 static CYTHON_INLINE
void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
38718 PyObject *tmp_type, *tmp_value, *tmp_tb;
38719 #if CYTHON_USE_EXC_INFO_STACK
38720 _PyErr_StackItem *exc_info = tstate->exc_info;
38721 tmp_type = exc_info->exc_type;
38722 tmp_value = exc_info->exc_value;
38723 tmp_tb = exc_info->exc_traceback;
38724 exc_info->exc_type = *type;
38725 exc_info->exc_value = *value;
38726 exc_info->exc_traceback = *tb;
38728 tmp_type = tstate->exc_type;
38729 tmp_value = tstate->exc_value;
38730 tmp_tb = tstate->exc_traceback;
38731 tstate->exc_type = *type;
38732 tstate->exc_value = *value;
38733 tstate->exc_traceback = *tb;
38736 *value = tmp_value;
38740 static CYTHON_INLINE
void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) {
38741 PyObject *tmp_type, *tmp_value, *tmp_tb;
38742 PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb);
38743 PyErr_SetExcInfo(*type, *value, *tb);
38745 *value = tmp_value;
38751 static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list,
int level) {
38752 PyObject *empty_list = 0;
38753 PyObject *module = 0;
38754 PyObject *global_dict = 0;
38755 PyObject *empty_dict = 0;
38757 #if PY_MAJOR_VERSION < 3
38758 PyObject *py_import;
38759 py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
38766 empty_list = PyList_New(0);
38771 global_dict = PyModule_GetDict(__pyx_m);
38774 empty_dict = PyDict_New();
38778 #if PY_MAJOR_VERSION >= 3
38780 if (strchr(__Pyx_MODULE_NAME,
'.')) {
38781 module = PyImport_ImportModuleLevelObject(
38782 name, global_dict, empty_dict, list, 1);
38784 if (!PyErr_ExceptionMatches(PyExc_ImportError))
38793 #if PY_MAJOR_VERSION < 3
38794 PyObject *py_level = PyInt_FromLong(level);
38797 module = PyObject_CallFunctionObjArgs(py_import,
38798 name, global_dict, empty_dict, list, py_level, (PyObject *)NULL);
38799 Py_DECREF(py_level);
38801 module = PyImport_ImportModuleLevelObject(
38802 name, global_dict, empty_dict, list, level);
38807 #if PY_MAJOR_VERSION < 3
38808 Py_XDECREF(py_import);
38810 Py_XDECREF(empty_list);
38811 Py_XDECREF(empty_dict);
38816 #if CYTHON_COMPILING_IN_CPYTHON
38817 static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
38823 return b == &PyBaseObject_Type;
38825 static CYTHON_INLINE
int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
38827 if (a == b)
return 1;
38831 n = PyTuple_GET_SIZE(mro);
38832 for (i = 0; i <
n; i++) {
38833 if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
38838 return __Pyx_InBases(a, b);
38840 #if PY_MAJOR_VERSION == 2
38841 static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) {
38842 PyObject *exception, *value, *tb;
38844 __Pyx_PyThreadState_declare
38845 __Pyx_PyThreadState_assign
38846 __Pyx_ErrFetch(&exception, &value, &tb);
38847 res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0;
38848 if (unlikely(res == -1)) {
38849 PyErr_WriteUnraisable(err);
38853 res = PyObject_IsSubclass(err, exc_type2);
38854 if (unlikely(res == -1)) {
38855 PyErr_WriteUnraisable(err);
38859 __Pyx_ErrRestore(exception, value, tb);
38863 static CYTHON_INLINE
int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
38864 int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0;
38866 res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
38871 static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
38873 assert(PyExceptionClass_Check(exc_type));
38874 n = PyTuple_GET_SIZE(tuple);
38875 #if PY_MAJOR_VERSION >= 3
38876 for (i=0; i<
n; i++) {
38877 if (exc_type == PyTuple_GET_ITEM(tuple, i))
return 1;
38880 for (i=0; i<
n; i++) {
38881 PyObject *t = PyTuple_GET_ITEM(tuple, i);
38882 #if PY_MAJOR_VERSION < 3
38883 if (likely(exc_type == t))
return 1;
38885 if (likely(PyExceptionClass_Check(t))) {
38886 if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t))
return 1;
38892 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
38893 if (likely(err == exc_type))
return 1;
38894 if (likely(PyExceptionClass_Check(err))) {
38895 if (likely(PyExceptionClass_Check(exc_type))) {
38896 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
38897 }
else if (likely(PyTuple_Check(exc_type))) {
38898 return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
38902 return PyErr_GivenExceptionMatches(err, exc_type);
38904 static CYTHON_INLINE
int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
38905 assert(PyExceptionClass_Check(exc_type1));
38906 assert(PyExceptionClass_Check(exc_type2));
38907 if (likely(err == exc_type1 || err == exc_type2))
return 1;
38908 if (likely(PyExceptionClass_Check(err))) {
38909 return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
38911 return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
38916 #if !CYTHON_COMPILING_IN_PYPY
38917 static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED
long intval, CYTHON_UNUSED
int inplace) {
38918 #if PY_MAJOR_VERSION < 3
38919 if (likely(PyInt_CheckExact(op1))) {
38920 const long b = intval;
38922 long a = PyInt_AS_LONG(op1);
38923 x = (long)((
unsigned long)a + b);
38924 if (likely((x^a) >= 0 || (x^b) >= 0))
38925 return PyInt_FromLong(x);
38926 return PyLong_Type.tp_as_number->nb_add(op1, op2);
38929 #if CYTHON_USE_PYLONG_INTERNALS
38930 if (likely(PyLong_CheckExact(op1))) {
38931 const long b = intval;
38933 #ifdef HAVE_LONG_LONG
38934 const PY_LONG_LONG llb = intval;
38935 PY_LONG_LONG lla, llx;
38937 const digit* digits = ((PyLongObject*)op1)->ob_digit;
38938 const Py_ssize_t size = Py_SIZE(op1);
38939 if (likely(__Pyx_sst_abs(size) <= 1)) {
38940 a = likely(size) ? digits[0] : 0;
38941 if (size == -1) a = -a;
38945 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
38946 a = -(long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
38948 #ifdef HAVE_LONG_LONG
38949 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
38950 lla = -(PY_LONG_LONG) (((((
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
38954 CYTHON_FALLTHROUGH;
38956 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
38957 a = (long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
38959 #ifdef HAVE_LONG_LONG
38960 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
38961 lla = (PY_LONG_LONG) (((((
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
38965 CYTHON_FALLTHROUGH;
38967 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
38968 a = -(long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
38970 #ifdef HAVE_LONG_LONG
38971 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
38972 lla = -(PY_LONG_LONG) (((((((
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
38976 CYTHON_FALLTHROUGH;
38978 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
38979 a = (long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
38981 #ifdef HAVE_LONG_LONG
38982 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
38983 lla = (PY_LONG_LONG) (((((((
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
38987 CYTHON_FALLTHROUGH;
38989 if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
38990 a = -(long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
38992 #ifdef HAVE_LONG_LONG
38993 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
38994 lla = -(PY_LONG_LONG) (((((((((
unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
38998 CYTHON_FALLTHROUGH;
39000 if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
39001 a = (long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0]));
39003 #ifdef HAVE_LONG_LONG
39004 }
else if (8 *
sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
39005 lla = (PY_LONG_LONG) (((((((((
unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (
unsigned PY_LONG_LONG)digits[0]));
39009 CYTHON_FALLTHROUGH;
39010 default:
return PyLong_Type.tp_as_number->nb_add(op1, op2);
39014 return PyLong_FromLong(x);
39015 #ifdef HAVE_LONG_LONG
39018 return PyLong_FromLongLong(llx);
39024 if (PyFloat_CheckExact(op1)) {
39025 const long b = intval;
39026 double a = PyFloat_AS_DOUBLE(op1);
39028 PyFPE_START_PROTECT(
"add",
return NULL)
39029 result = ((double)a) + (double)b;
39030 PyFPE_END_PROTECT(result)
39031 return PyFloat_FromDouble(result);
39033 return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2);
39038 static CYTHON_INLINE
void __Pyx_RaiseUnboundLocalError(
const char *varname) {
39039 PyErr_Format(PyExc_UnboundLocalError,
"local variable '%s' referenced before assignment", varname);
39043 static CYTHON_INLINE
long __Pyx_div_long(
long a,
long b) {
39046 q -= ((
r != 0) & ((
r ^ b) < 0));
39051 static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
39052 PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
39053 if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
39054 PyErr_Format(PyExc_ImportError,
39055 #
if PY_MAJOR_VERSION < 3
39056 "cannot import name %.230s", PyString_AS_STRING(name));
39058 "cannot import name %S", name);
39065 static CYTHON_INLINE
int __Pyx_HasAttr(PyObject *o, PyObject *
n) {
39067 if (unlikely(!__Pyx_PyBaseString_Check(
n))) {
39068 PyErr_SetString(PyExc_TypeError,
39069 "hasattr(): attribute name must be string");
39072 r = __Pyx_GetAttr(o,
n);
39073 if (unlikely(!
r)) {
39083 #if !CYTHON_COMPILING_IN_CPYTHON
39084 static CYTHON_INLINE PyObject* __Pyx_PyBytes_Join(PyObject* sep, PyObject* values) {
39085 return PyObject_CallMethodObjArgs(sep, __pyx_n_s_join, values, NULL);
39090 #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
39091 static PyObject *__Pyx_RaiseGenericGetAttributeError(PyTypeObject *tp, PyObject *attr_name) {
39092 PyErr_Format(PyExc_AttributeError,
39093 #
if PY_MAJOR_VERSION >= 3
39094 "'%.50s' object has no attribute '%U'",
39095 tp->tp_name, attr_name);
39097 "'%.50s' object has no attribute '%.400s'",
39098 tp->tp_name, PyString_AS_STRING(attr_name));
39102 static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name) {
39104 PyTypeObject *tp = Py_TYPE(obj);
39105 if (unlikely(!PyString_Check(attr_name))) {
39106 return PyObject_GenericGetAttr(obj, attr_name);
39108 assert(!tp->tp_dictoffset);
39109 descr = _PyType_Lookup(tp, attr_name);
39110 if (unlikely(!descr)) {
39111 return __Pyx_RaiseGenericGetAttributeError(tp, attr_name);
39114 #if PY_MAJOR_VERSION < 3
39115 if (likely(PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS)))
39118 descrgetfunc
f = Py_TYPE(descr)->tp_descr_get;
39120 PyObject *res =
f(descr, obj, (PyObject *)tp);
39130 #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
39131 static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name) {
39132 if (unlikely(Py_TYPE(obj)->tp_dictoffset)) {
39133 return PyObject_GenericGetAttr(obj, attr_name);
39135 return __Pyx_PyObject_GenericGetAttrNoDict(obj, attr_name);
39140 static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) {
39142 PyObject *name_attr;
39143 name_attr = __Pyx_PyObject_GetAttrStr(meth, __pyx_n_s_name_2);
39144 if (likely(name_attr)) {
39145 ret = PyObject_RichCompareBool(name_attr, name, Py_EQ);
39149 if (unlikely(ret < 0)) {
39153 Py_XDECREF(name_attr);
39156 static int __Pyx_setup_reduce(PyObject* type_obj) {
39158 PyObject *object_reduce = NULL;
39159 PyObject *object_reduce_ex = NULL;
39160 PyObject *reduce = NULL;
39161 PyObject *reduce_ex = NULL;
39162 PyObject *reduce_cython = NULL;
39163 PyObject *setstate = NULL;
39164 PyObject *setstate_cython = NULL;
39165 #if CYTHON_USE_PYTYPE_LOOKUP
39166 if (_PyType_Lookup((PyTypeObject*)type_obj, __pyx_n_s_getstate))
goto GOOD;
39168 if (PyObject_HasAttr(type_obj, __pyx_n_s_getstate))
goto GOOD;
39170 #if CYTHON_USE_PYTYPE_LOOKUP
39171 object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce_ex);
if (!object_reduce_ex)
goto BAD;
39173 object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce_ex);
if (!object_reduce_ex)
goto BAD;
39175 reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_ex);
if (unlikely(!reduce_ex))
goto BAD;
39176 if (reduce_ex == object_reduce_ex) {
39177 #if CYTHON_USE_PYTYPE_LOOKUP
39178 object_reduce = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce);
if (!object_reduce)
goto BAD;
39180 object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce);
if (!object_reduce)
goto BAD;
39182 reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce);
if (unlikely(!reduce))
goto BAD;
39183 if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_n_s_reduce_cython)) {
39184 reduce_cython = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_cython);
if (unlikely(!reduce_cython))
goto BAD;
39185 ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce, reduce_cython);
if (unlikely(ret < 0))
goto BAD;
39186 ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce_cython);
if (unlikely(ret < 0))
goto BAD;
39187 setstate = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_setstate);
39188 if (!setstate) PyErr_Clear();
39189 if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) {
39190 setstate_cython = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_setstate_cython);
if (unlikely(!setstate_cython))
goto BAD;
39191 ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate, setstate_cython);
if (unlikely(ret < 0))
goto BAD;
39192 ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate_cython);
if (unlikely(ret < 0))
goto BAD;
39194 PyType_Modified((PyTypeObject*)type_obj);
39199 if (!PyErr_Occurred())
39200 PyErr_Format(PyExc_RuntimeError,
"Unable to initialize pickling for %s", ((PyTypeObject*)type_obj)->tp_name);
39203 #if !CYTHON_USE_PYTYPE_LOOKUP
39204 Py_XDECREF(object_reduce);
39205 Py_XDECREF(object_reduce_ex);
39207 Py_XDECREF(reduce);
39208 Py_XDECREF(reduce_ex);
39209 Py_XDECREF(reduce_cython);
39210 Py_XDECREF(setstate);
39211 Py_XDECREF(setstate_cython);
39216 static int __Pyx_SetVtable(PyObject *dict,
void *vtable) {
39217 #if PY_VERSION_HEX >= 0x02070000
39218 PyObject *ob = PyCapsule_New(vtable, 0, 0);
39220 PyObject *ob = PyCObject_FromVoidPtr(vtable, 0);
39224 if (PyDict_SetItem(dict, __pyx_n_s_pyx_vtable, ob) < 0)
39234 #ifndef __PYX_HAVE_RT_ImportType
39235 #define __PYX_HAVE_RT_ImportType
39236 static PyTypeObject *__Pyx_ImportType(PyObject *module,
const char *module_name,
const char *class_name,
39237 size_t size,
enum __Pyx_ImportType_CheckSize check_size)
39239 PyObject *result = 0;
39241 Py_ssize_t basicsize;
39242 #ifdef Py_LIMITED_API
39243 PyObject *py_basicsize;
39245 result = PyObject_GetAttrString(module, class_name);
39248 if (!PyType_Check(result)) {
39249 PyErr_Format(PyExc_TypeError,
39250 "%.200s.%.200s is not a type object",
39251 module_name, class_name);
39254 #ifndef Py_LIMITED_API
39255 basicsize = ((PyTypeObject *)result)->tp_basicsize;
39257 py_basicsize = PyObject_GetAttrString(result,
"__basicsize__");
39260 basicsize = PyLong_AsSsize_t(py_basicsize);
39261 Py_DECREF(py_basicsize);
39263 if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
39266 if ((
size_t)basicsize < size) {
39267 PyErr_Format(PyExc_ValueError,
39268 "%.200s.%.200s size changed, may indicate binary incompatibility. "
39269 "Expected %zd from C header, got %zd from PyObject",
39270 module_name, class_name, size, basicsize);
39273 if (check_size == __Pyx_ImportType_CheckSize_Error && (
size_t)basicsize != size) {
39274 PyErr_Format(PyExc_ValueError,
39275 "%.200s.%.200s size changed, may indicate binary incompatibility. "
39276 "Expected %zd from C header, got %zd from PyObject",
39277 module_name, class_name, size, basicsize);
39280 else if (check_size == __Pyx_ImportType_CheckSize_Warn && (
size_t)basicsize > size) {
39281 PyOS_snprintf(warning,
sizeof(warning),
39282 "%s.%s size changed, may indicate binary incompatibility. "
39283 "Expected %zd from C header, got %zd from PyObject",
39284 module_name, class_name, size, basicsize);
39285 if (PyErr_WarnEx(NULL, warning, 0) < 0)
goto bad;
39287 return (PyTypeObject *)result;
39289 Py_XDECREF(result);
39295 #ifndef CYTHON_CLINE_IN_TRACEBACK
39296 static int __Pyx_CLineForTraceback(PyThreadState *tstate,
int c_line) {
39297 PyObject *use_cline;
39298 PyObject *ptype, *pvalue, *ptraceback;
39299 #if CYTHON_COMPILING_IN_CPYTHON
39300 PyObject **cython_runtime_dict;
39302 if (unlikely(!__pyx_cython_runtime)) {
39305 __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
39306 #if CYTHON_COMPILING_IN_CPYTHON
39307 cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime);
39308 if (likely(cython_runtime_dict)) {
39309 __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
39310 use_cline, *cython_runtime_dict,
39311 __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback))
39315 PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback);
39316 if (use_cline_obj) {
39317 use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True;
39318 Py_DECREF(use_cline_obj);
39326 PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
39328 else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
39331 __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
39337 static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries,
int count,
int code_line) {
39338 int start = 0, mid = 0, end = count - 1;
39339 if (end >= 0 && code_line > entries[end].code_line) {
39342 while (start < end) {
39343 mid = start + (end - start) / 2;
39344 if (code_line < entries[mid].code_line) {
39346 }
else if (code_line > entries[mid].code_line) {
39352 if (code_line <= entries[mid].code_line) {
39358 static PyCodeObject *__pyx_find_code_object(
int code_line) {
39359 PyCodeObject* code_object;
39361 if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
39364 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
39365 if (unlikely(
pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[
pos].code_line != code_line)) {
39368 code_object = __pyx_code_cache.entries[
pos].code_object;
39369 Py_INCREF(code_object);
39370 return code_object;
39372 static void __pyx_insert_code_object(
int code_line, PyCodeObject* code_object) {
39374 __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
39375 if (unlikely(!code_line)) {
39378 if (unlikely(!entries)) {
39379 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*
sizeof(__Pyx_CodeObjectCacheEntry));
39380 if (likely(entries)) {
39381 __pyx_code_cache.entries = entries;
39382 __pyx_code_cache.max_count = 64;
39383 __pyx_code_cache.count = 1;
39384 entries[0].code_line = code_line;
39385 entries[0].code_object = code_object;
39386 Py_INCREF(code_object);
39390 pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
39391 if ((
pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[
pos].code_line == code_line)) {
39392 PyCodeObject* tmp = entries[
pos].code_object;
39393 entries[
pos].code_object = code_object;
39397 if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
39398 int new_max = __pyx_code_cache.max_count + 64;
39399 entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
39400 __pyx_code_cache.entries, (
size_t)new_max*
sizeof(__Pyx_CodeObjectCacheEntry));
39401 if (unlikely(!entries)) {
39404 __pyx_code_cache.entries = entries;
39405 __pyx_code_cache.max_count = new_max;
39407 for (i=__pyx_code_cache.count; i>
pos; i--) {
39408 entries[i] = entries[i-1];
39410 entries[
pos].code_line = code_line;
39411 entries[
pos].code_object = code_object;
39412 __pyx_code_cache.count++;
39413 Py_INCREF(code_object);
39417 #include "compile.h"
39418 #include "frameobject.h"
39419 #include "traceback.h"
39420 static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
39421 const char *funcname,
int c_line,
39422 int py_line,
const char *filename) {
39423 PyCodeObject *py_code = 0;
39424 PyObject *py_srcfile = 0;
39425 PyObject *py_funcname = 0;
39426 #if PY_MAJOR_VERSION < 3
39427 py_srcfile = PyString_FromString(filename);
39429 py_srcfile = PyUnicode_FromString(filename);
39431 if (!py_srcfile)
goto bad;
39433 #if PY_MAJOR_VERSION < 3
39434 py_funcname = PyString_FromFormat(
"%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
39436 py_funcname = PyUnicode_FromFormat(
"%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
39440 #if PY_MAJOR_VERSION < 3
39441 py_funcname = PyString_FromString(funcname);
39443 py_funcname = PyUnicode_FromString(funcname);
39446 if (!py_funcname)
goto bad;
39447 py_code = __Pyx_PyCode_New(
39464 Py_DECREF(py_srcfile);
39465 Py_DECREF(py_funcname);
39468 Py_XDECREF(py_srcfile);
39469 Py_XDECREF(py_funcname);
39472 static void __Pyx_AddTraceback(
const char *funcname,
int c_line,
39473 int py_line,
const char *filename) {
39474 PyCodeObject *py_code = 0;
39475 PyFrameObject *py_frame = 0;
39476 PyThreadState *tstate = __Pyx_PyThreadState_Current;
39478 c_line = __Pyx_CLineForTraceback(tstate, c_line);
39480 py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
39482 py_code = __Pyx_CreateCodeObjectForTraceback(
39483 funcname, c_line, py_line, filename);
39484 if (!py_code)
goto bad;
39485 __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
39487 py_frame = PyFrame_New(
39493 if (!py_frame)
goto bad;
39494 __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
39495 PyTraceBack_Here(py_frame);
39497 Py_XDECREF(py_code);
39498 Py_XDECREF(py_frame);
39502 #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
39503 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
39504 #define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
39505 __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
39506 #define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
39508 func_type value = func_value;\
39509 if (sizeof(target_type) < sizeof(func_type)) {\
39510 if (unlikely(value != (func_type) (target_type) value)) {\
39511 func_type zero = 0;\
39512 if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
39513 return (target_type) -1;\
39514 if (is_unsigned && unlikely(value < zero))\
39515 goto raise_neg_overflow;\
39517 goto raise_overflow;\
39520 return (target_type) value;\
39524 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(
int value) {
39525 const int neg_one = (int) ((
int) 0 - (int) 1), const_zero = (int) 0;
39526 const int is_unsigned = neg_one > const_zero;
39528 if (
sizeof(
int) <
sizeof(long)) {
39529 return PyInt_FromLong((
long) value);
39530 }
else if (
sizeof(
int) <=
sizeof(
unsigned long)) {
39531 return PyLong_FromUnsignedLong((
unsigned long) value);
39532 #ifdef HAVE_LONG_LONG
39533 }
else if (
sizeof(
int) <=
sizeof(
unsigned PY_LONG_LONG)) {
39534 return PyLong_FromUnsignedLongLong((
unsigned PY_LONG_LONG) value);
39538 if (
sizeof(
int) <=
sizeof(
long)) {
39539 return PyInt_FromLong((
long) value);
39540 #ifdef HAVE_LONG_LONG
39541 }
else if (
sizeof(
int) <=
sizeof(PY_LONG_LONG)) {
39542 return PyLong_FromLongLong((PY_LONG_LONG) value);
39547 int one = 1;
int little = (int)*(
unsigned char *)&one;
39548 unsigned char *bytes = (
unsigned char *)&value;
39549 return _PyLong_FromByteArray(bytes,
sizeof(
int),
39550 little, !is_unsigned);
39555 static CYTHON_INLINE PyObject *__pyx_memview_get_int(
const char *itemp) {
39556 return (PyObject *) __Pyx_PyInt_From_int(*(
int *) itemp);
39558 static CYTHON_INLINE
int __pyx_memview_set_int(
const char *itemp, PyObject *obj) {
39559 int value = __Pyx_PyInt_As_int(obj);
39560 if ((value == (
int)-1) && PyErr_Occurred())
39562 *(
int *) itemp = value;
39567 static CYTHON_INLINE PyObject *__pyx_memview_get_double(
const char *itemp) {
39568 return (PyObject *) PyFloat_FromDouble(*(
double *) itemp);
39570 static CYTHON_INLINE
int __pyx_memview_set_double(
const char *itemp, PyObject *obj) {
39571 double value = __pyx_PyFloat_AsDouble(obj);
39572 if ((value == (
double)-1) && PyErr_Occurred())
39574 *(
double *) itemp = value;
39579 #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION < 3
39580 static PyObject *__Pyx_GetStdout(
void) {
39581 PyObject *
f = PySys_GetObject((
char *)
"stdout");
39583 PyErr_SetString(PyExc_RuntimeError,
"lost sys.stdout");
39587 static int __Pyx_Print(PyObject*
f, PyObject *arg_tuple,
int newline) {
39590 if (!(
f = __Pyx_GetStdout()))
39594 for (i=0; i < PyTuple_GET_SIZE(arg_tuple); i++) {
39596 if (PyFile_SoftSpace(
f, 1)) {
39597 if (PyFile_WriteString(
" ",
f) < 0)
39600 v = PyTuple_GET_ITEM(arg_tuple, i);
39601 if (PyFile_WriteObject(
v,
f, Py_PRINT_RAW) < 0)
39603 if (PyString_Check(
v)) {
39604 char *
s = PyString_AsString(
v);
39605 Py_ssize_t len = PyString_Size(
v);
39607 switch (
s[len-1]) {
39609 case '\f':
case '\r':
case '\n':
case '\t':
case '\v':
39610 PyFile_SoftSpace(
f, 0);
39618 if (PyFile_WriteString(
"\n",
f) < 0)
39620 PyFile_SoftSpace(
f, 0);
39629 static int __Pyx_Print(PyObject* stream, PyObject *arg_tuple,
int newline) {
39630 PyObject* kwargs = 0;
39631 PyObject* result = 0;
39632 PyObject* end_string;
39633 if (unlikely(!__pyx_print)) {
39634 __pyx_print = PyObject_GetAttr(__pyx_b, __pyx_n_s_print);
39639 kwargs = PyDict_New();
39640 if (unlikely(!kwargs))
39642 if (unlikely(PyDict_SetItem(kwargs, __pyx_n_s_file, stream) < 0))
39645 end_string = PyUnicode_FromStringAndSize(
" ", 1);
39646 if (unlikely(!end_string))
39648 if (PyDict_SetItem(kwargs, __pyx_n_s_end, end_string) < 0) {
39649 Py_DECREF(end_string);
39652 Py_DECREF(end_string);
39654 }
else if (!newline) {
39655 if (unlikely(!__pyx_print_kwargs)) {
39656 __pyx_print_kwargs = PyDict_New();
39657 if (unlikely(!__pyx_print_kwargs))
39659 end_string = PyUnicode_FromStringAndSize(
" ", 1);
39660 if (unlikely(!end_string))
39662 if (PyDict_SetItem(__pyx_print_kwargs, __pyx_n_s_end, end_string) < 0) {
39663 Py_DECREF(end_string);
39666 Py_DECREF(end_string);
39668 kwargs = __pyx_print_kwargs;
39670 result = PyObject_Call(__pyx_print, arg_tuple, kwargs);
39671 if (unlikely(kwargs) && (kwargs != __pyx_print_kwargs))
39678 if (kwargs != __pyx_print_kwargs)
39679 Py_XDECREF(kwargs);
39685 #if CYTHON_CCOMPLEX
39687 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
39688 return ::std::complex< float >(x, y);
39691 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
39692 return x + y*(__pyx_t_float_complex)_Complex_I;
39696 static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(
float x,
float y) {
39697 __pyx_t_float_complex
z;
39705 #if CYTHON_CCOMPLEX
39707 static CYTHON_INLINE
int __Pyx_c_eq_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
39708 return (a.real == b.real) && (a.imag == b.imag);
39710 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
39711 __pyx_t_float_complex
z;
39712 z.real = a.real + b.real;
39713 z.imag = a.imag + b.imag;
39716 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
39717 __pyx_t_float_complex
z;
39718 z.real = a.real - b.real;
39719 z.imag = a.imag - b.imag;
39722 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
39723 __pyx_t_float_complex
z;
39724 z.real = a.real * b.real - a.imag * b.imag;
39725 z.imag = a.real * b.imag + a.imag * b.real;
39729 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
39731 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
39732 }
else if (fabsf(b.real) >= fabsf(b.imag)) {
39733 if (b.real == 0 && b.imag == 0) {
39734 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.imag);
39736 float r = b.imag / b.real;
39737 float s = 1.0 / (b.real + b.imag *
r);
39738 return __pyx_t_float_complex_from_parts(
39739 (a.real + a.imag *
r) *
s, (a.imag - a.real *
r) *
s);
39742 float r = b.real / b.imag;
39743 float s = 1.0 / (b.imag + b.real *
r);
39744 return __pyx_t_float_complex_from_parts(
39745 (a.real *
r + a.imag) *
s, (a.imag *
r - a.real) *
s);
39749 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
39751 return __pyx_t_float_complex_from_parts(a.real / b.real, a.imag / b.real);
39753 float denom = b.real * b.real + b.imag * b.imag;
39754 return __pyx_t_float_complex_from_parts(
39755 (a.real * b.real + a.imag * b.imag) / denom,
39756 (a.imag * b.real - a.real * b.imag) / denom);
39760 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex a) {
39761 __pyx_t_float_complex
z;
39766 static CYTHON_INLINE
int __Pyx_c_is_zero_float(__pyx_t_float_complex a) {
39767 return (a.real == 0) && (a.imag == 0);
39769 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex a) {
39770 __pyx_t_float_complex
z;
39776 static CYTHON_INLINE
float __Pyx_c_abs_float(__pyx_t_float_complex
z) {
39777 #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
39778 return sqrtf(
z.real*
z.real +
z.imag*
z.imag);
39780 return hypotf(
z.real,
z.imag);
39783 static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex a, __pyx_t_float_complex b) {
39784 __pyx_t_float_complex
z;
39785 float r, lnr, theta, z_r, z_theta;
39786 if (b.imag == 0 && b.real == (
int)b.real) {
39788 float denom = a.real * a.real + a.imag * a.imag;
39789 a.real = a.real / denom;
39790 a.imag = -a.imag / denom;
39793 switch ((
int)b.real) {
39801 z = __Pyx_c_prod_float(a, a);
39802 return __Pyx_c_prod_float(a, a);
39804 z = __Pyx_c_prod_float(a, a);
39805 return __Pyx_c_prod_float(
z, a);
39807 z = __Pyx_c_prod_float(a, a);
39808 return __Pyx_c_prod_float(
z,
z);
39814 }
else if (b.imag == 0) {
39815 z.real = powf(a.real, b.real);
39818 }
else if (a.real > 0) {
39823 theta = atan2f(0, -1);
39826 r = __Pyx_c_abs_float(a);
39827 theta = atan2f(a.imag, a.real);
39830 z_r = expf(lnr * b.real - theta * b.imag);
39831 z_theta = theta * b.real + lnr * b.imag;
39832 z.real = z_r * cosf(z_theta);
39833 z.imag = z_r * sinf(z_theta);
39840 #if CYTHON_CCOMPLEX
39842 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
39843 return ::std::complex< double >(x, y);
39846 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
39847 return x + y*(__pyx_t_double_complex)_Complex_I;
39851 static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(
double x,
double y) {
39852 __pyx_t_double_complex
z;
39860 #if CYTHON_CCOMPLEX
39862 static CYTHON_INLINE
int __Pyx_c_eq_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
39863 return (a.real == b.real) && (a.imag == b.imag);
39865 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
39866 __pyx_t_double_complex
z;
39867 z.real = a.real + b.real;
39868 z.imag = a.imag + b.imag;
39871 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
39872 __pyx_t_double_complex
z;
39873 z.real = a.real - b.real;
39874 z.imag = a.imag - b.imag;
39877 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
39878 __pyx_t_double_complex
z;
39879 z.real = a.real * b.real - a.imag * b.imag;
39880 z.imag = a.real * b.imag + a.imag * b.real;
39884 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
39886 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
39887 }
else if (fabs(b.real) >= fabs(b.imag)) {
39888 if (b.real == 0 && b.imag == 0) {
39889 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.imag);
39891 double r = b.imag / b.real;
39892 double s = 1.0 / (b.real + b.imag *
r);
39893 return __pyx_t_double_complex_from_parts(
39894 (a.real + a.imag *
r) *
s, (a.imag - a.real *
r) *
s);
39897 double r = b.real / b.imag;
39898 double s = 1.0 / (b.imag + b.real *
r);
39899 return __pyx_t_double_complex_from_parts(
39900 (a.real *
r + a.imag) *
s, (a.imag *
r - a.real) *
s);
39904 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
39906 return __pyx_t_double_complex_from_parts(a.real / b.real, a.imag / b.real);
39908 double denom = b.real * b.real + b.imag * b.imag;
39909 return __pyx_t_double_complex_from_parts(
39910 (a.real * b.real + a.imag * b.imag) / denom,
39911 (a.imag * b.real - a.real * b.imag) / denom);
39915 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex a) {
39916 __pyx_t_double_complex
z;
39921 static CYTHON_INLINE
int __Pyx_c_is_zero_double(__pyx_t_double_complex a) {
39922 return (a.real == 0) && (a.imag == 0);
39924 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex a) {
39925 __pyx_t_double_complex
z;
39931 static CYTHON_INLINE
double __Pyx_c_abs_double(__pyx_t_double_complex
z) {
39932 #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
39933 return sqrt(
z.real*
z.real +
z.imag*
z.imag);
39935 return hypot(
z.real,
z.imag);
39938 static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex a, __pyx_t_double_complex b) {
39939 __pyx_t_double_complex
z;
39940 double r, lnr, theta, z_r, z_theta;
39941 if (b.imag == 0 && b.real == (
int)b.real) {
39943 double denom = a.real * a.real + a.imag * a.imag;
39944 a.real = a.real / denom;
39945 a.imag = -a.imag / denom;
39948 switch ((
int)b.real) {
39956 z = __Pyx_c_prod_double(a, a);
39957 return __Pyx_c_prod_double(a, a);
39959 z = __Pyx_c_prod_double(a, a);
39960 return __Pyx_c_prod_double(
z, a);
39962 z = __Pyx_c_prod_double(a, a);
39963 return __Pyx_c_prod_double(
z,
z);
39969 }
else if (b.imag == 0) {
39970 z.real = pow(a.real, b.real);
39973 }
else if (a.real > 0) {
39978 theta = atan2(0, -1);
39981 r = __Pyx_c_abs_double(a);
39982 theta = atan2(a.imag, a.real);
39985 z_r = exp(lnr * b.real - theta * b.imag);
39986 z_theta = theta * b.real + lnr * b.imag;
39987 z.real = z_r * cos(z_theta);
39988 z.imag = z_r * sin(z_theta);
39995 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__NPY_TYPES(
enum NPY_TYPES value) {
39996 const enum NPY_TYPES neg_one = (
enum NPY_TYPES) ((
enum NPY_TYPES) 0 - (
enum NPY_TYPES) 1), const_zero = (
enum NPY_TYPES) 0;
39997 const int is_unsigned = neg_one > const_zero;
39999 if (
sizeof(
enum NPY_TYPES) <
sizeof(long)) {
40000 return PyInt_FromLong((
long) value);
40001 }
else if (
sizeof(
enum NPY_TYPES) <=
sizeof(
unsigned long)) {
40002 return PyLong_FromUnsignedLong((
unsigned long) value);
40003 #ifdef HAVE_LONG_LONG
40004 }
else if (
sizeof(
enum NPY_TYPES) <=
sizeof(
unsigned PY_LONG_LONG)) {
40005 return PyLong_FromUnsignedLongLong((
unsigned PY_LONG_LONG) value);
40009 if (
sizeof(
enum NPY_TYPES) <=
sizeof(
long)) {
40010 return PyInt_FromLong((
long) value);
40011 #ifdef HAVE_LONG_LONG
40012 }
else if (
sizeof(
enum NPY_TYPES) <=
sizeof(PY_LONG_LONG)) {
40013 return PyLong_FromLongLong((PY_LONG_LONG) value);
40018 int one = 1;
int little = (int)*(
unsigned char *)&one;
40019 unsigned char *bytes = (
unsigned char *)&value;
40020 return _PyLong_FromByteArray(bytes,
sizeof(
enum NPY_TYPES),
40021 little, !is_unsigned);
40025 #if PY_MAJOR_VERSION < 3
40026 static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view,
int flags) {
40027 if (PyObject_CheckBuffer(obj))
return PyObject_GetBuffer(obj, view, flags);
40028 if (__Pyx_TypeCheck(obj, __pyx_ptype_5numpy_ndarray))
return __pyx_pw_5numpy_7ndarray_1__getbuffer__(obj, view, flags);
40029 if (__Pyx_TypeCheck(obj, __pyx_array_type))
return __pyx_array_getbuffer(obj, view, flags);
40030 if (__Pyx_TypeCheck(obj, __pyx_memoryview_type))
return __pyx_memoryview_getbuffer(obj, view, flags);
40031 PyErr_Format(PyExc_TypeError,
"'%.200s' does not have the buffer interface", Py_TYPE(obj)->tp_name);
40034 static void __Pyx_ReleaseBuffer(Py_buffer *view) {
40035 PyObject *obj = view->obj;
40037 if (PyObject_CheckBuffer(obj)) {
40038 PyBuffer_Release(view);
40042 else if (__Pyx_TypeCheck(obj, __pyx_ptype_5numpy_ndarray)) __pyx_pw_5numpy_7ndarray_3__releasebuffer__(obj, view);
40051 __pyx_memviewslice_is_contig(
const __Pyx_memviewslice mvs,
char order,
int ndim)
40053 int i, index, step, start;
40054 Py_ssize_t itemsize = mvs.memview->view.itemsize;
40055 if (order ==
'F') {
40062 for (i = 0; i < ndim; i++) {
40063 index = start + step * i;
40064 if (mvs.suboffsets[index] >= 0 || mvs.strides[index] != itemsize)
40066 itemsize *= mvs.shape[index];
40073 __pyx_get_array_memory_extents(__Pyx_memviewslice *slice,
40074 void **out_start,
void **out_end,
40075 int ndim,
size_t itemsize)
40079 start = end = slice->data;
40080 for (i = 0; i < ndim; i++) {
40081 Py_ssize_t stride = slice->strides[i];
40082 Py_ssize_t extent = slice->shape[i];
40084 *out_start = *out_end = start;
40088 end += stride * (extent - 1);
40090 start += stride * (extent - 1);
40093 *out_start = start;
40094 *out_end = end + itemsize;
40097 __pyx_slices_overlap(__Pyx_memviewslice *slice1,
40098 __Pyx_memviewslice *slice2,
40099 int ndim,
size_t itemsize)
40101 void *start1, *end1, *start2, *end2;
40102 __pyx_get_array_memory_extents(slice1, &start1, &end1, ndim, itemsize);
40103 __pyx_get_array_memory_extents(slice2, &start2, &end2, ndim, itemsize);
40104 return (start1 < end2) && (start2 < end1);
40108 static CYTHON_INLINE PyObject *
40109 __pyx_capsule_create(
void *p, CYTHON_UNUSED
const char *sig)
40112 #if PY_VERSION_HEX >= 0x02070000
40113 cobj = PyCapsule_New(p, sig, NULL);
40115 cobj = PyCObject_FromVoidPtr(p, NULL);
40121 static CYTHON_INLINE
int __Pyx_PyInt_As_int(PyObject *x) {
40122 const int neg_one = (int) ((
int) 0 - (int) 1), const_zero = (int) 0;
40123 const int is_unsigned = neg_one > const_zero;
40124 #if PY_MAJOR_VERSION < 3
40125 if (likely(PyInt_Check(x))) {
40126 if (
sizeof(
int) <
sizeof(long)) {
40127 __PYX_VERIFY_RETURN_INT(
int,
long, PyInt_AS_LONG(x))
40129 long val = PyInt_AS_LONG(x);
40130 if (is_unsigned && unlikely(val < 0)) {
40131 goto raise_neg_overflow;
40137 if (likely(PyLong_Check(x))) {
40139 #if CYTHON_USE_PYLONG_INTERNALS
40140 const digit* digits = ((PyLongObject*)x)->ob_digit;
40141 switch (Py_SIZE(x)) {
40142 case 0:
return (
int) 0;
40143 case 1: __PYX_VERIFY_RETURN_INT(
int, digit, digits[0])
40145 if (8 *
sizeof(
int) > 1 * PyLong_SHIFT) {
40146 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
40147 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40148 }
else if (8 *
sizeof(
int) >= 2 * PyLong_SHIFT) {
40149 return (
int) (((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0]));
40154 if (8 *
sizeof(
int) > 2 * PyLong_SHIFT) {
40155 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
40156 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40157 }
else if (8 *
sizeof(
int) >= 3 * PyLong_SHIFT) {
40158 return (
int) (((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
40163 if (8 *
sizeof(
int) > 3 * PyLong_SHIFT) {
40164 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
40165 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40166 }
else if (8 *
sizeof(
int) >= 4 * PyLong_SHIFT) {
40167 return (
int) (((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0]));
40173 #if CYTHON_COMPILING_IN_CPYTHON
40174 if (unlikely(Py_SIZE(x) < 0)) {
40175 goto raise_neg_overflow;
40179 int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
40180 if (unlikely(result < 0))
40182 if (unlikely(result == 1))
40183 goto raise_neg_overflow;
40186 if (
sizeof(
int) <=
sizeof(
unsigned long)) {
40187 __PYX_VERIFY_RETURN_INT_EXC(
int,
unsigned long, PyLong_AsUnsignedLong(x))
40188 #ifdef HAVE_LONG_LONG
40189 }
else if (
sizeof(
int) <=
sizeof(
unsigned PY_LONG_LONG)) {
40190 __PYX_VERIFY_RETURN_INT_EXC(
int,
unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
40194 #if CYTHON_USE_PYLONG_INTERNALS
40195 const digit* digits = ((PyLongObject*)x)->ob_digit;
40196 switch (Py_SIZE(x)) {
40197 case 0:
return (
int) 0;
40198 case -1: __PYX_VERIFY_RETURN_INT(
int, sdigit, (sdigit) (-(sdigit)digits[0]))
40199 case 1: __PYX_VERIFY_RETURN_INT(
int, digit, +digits[0])
40201 if (8 *
sizeof(
int) - 1 > 1 * PyLong_SHIFT) {
40202 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
40203 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40204 }
else if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
40205 return (
int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
40210 if (8 *
sizeof(
int) > 1 * PyLong_SHIFT) {
40211 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
40212 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40213 }
else if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
40214 return (
int) ((((((int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
40219 if (8 *
sizeof(
int) - 1 > 2 * PyLong_SHIFT) {
40220 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
40221 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40222 }
else if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
40223 return (
int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
40228 if (8 *
sizeof(
int) > 2 * PyLong_SHIFT) {
40229 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
40230 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40231 }
else if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
40232 return (
int) ((((((((int)digits[2]) << PyLong_SHIFT) | (
int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
40237 if (8 *
sizeof(
int) - 1 > 3 * PyLong_SHIFT) {
40238 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
40239 __PYX_VERIFY_RETURN_INT(
int,
long, -(
long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40240 }
else if (8 *
sizeof(
int) - 1 > 4 * PyLong_SHIFT) {
40241 return (
int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
40246 if (8 *
sizeof(
int) > 3 * PyLong_SHIFT) {
40247 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
40248 __PYX_VERIFY_RETURN_INT(
int,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40249 }
else if (8 *
sizeof(
int) - 1 > 4 * PyLong_SHIFT) {
40250 return (
int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (
int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (
int)digits[0])));
40256 if (
sizeof(
int) <=
sizeof(long)) {
40257 __PYX_VERIFY_RETURN_INT_EXC(
int,
long, PyLong_AsLong(x))
40258 #ifdef HAVE_LONG_LONG
40259 }
else if (
sizeof(
int) <=
sizeof(PY_LONG_LONG)) {
40260 __PYX_VERIFY_RETURN_INT_EXC(
int, PY_LONG_LONG, PyLong_AsLongLong(x))
40265 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
40266 PyErr_SetString(PyExc_RuntimeError,
40267 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
40270 PyObject *
v = __Pyx_PyNumber_IntOrLong(x);
40271 #if PY_MAJOR_VERSION < 3
40272 if (likely(
v) && !PyLong_Check(
v)) {
40274 v = PyNumber_Long(tmp);
40279 int one = 1;
int is_little = (int)*(
unsigned char *)&one;
40280 unsigned char *bytes = (
unsigned char *)&val;
40281 int ret = _PyLong_AsByteArray((PyLongObject *)
v,
40282 bytes,
sizeof(val),
40283 is_little, !is_unsigned);
40293 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
40294 if (!tmp)
return (
int) -1;
40295 val = __Pyx_PyInt_As_int(tmp);
40300 PyErr_SetString(PyExc_OverflowError,
40301 "value too large to convert to int");
40303 raise_neg_overflow:
40304 PyErr_SetString(PyExc_OverflowError,
40305 "can't convert negative value to int");
40310 static struct __pyx_typeinfo_string __Pyx_TypeInfoToFormat(__Pyx_TypeInfo *type) {
40311 struct __pyx_typeinfo_string result = { {0} };
40312 char *buf = (
char *) result.string;
40313 size_t size = type->size;
40314 switch (type->typegroup) {
40321 *buf = (type->is_unsigned) ?
'B' :
'b';
40322 else if (size == 2)
40323 *buf = (type->is_unsigned) ?
'H' :
'h';
40324 else if (size == 4)
40325 *buf = (type->is_unsigned) ?
'I' :
'i';
40326 else if (size == 8)
40327 *buf = (type->is_unsigned) ?
'Q' :
'q';
40334 __Pyx_TypeInfo complex_type = *type;
40335 complex_type.typegroup =
'R';
40336 complex_type.size /= 2;
40338 *buf = __Pyx_TypeInfoToFormat(&complex_type).string[0];
40344 else if (size == 8)
40354 #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION < 3
40355 static int __Pyx_PrintOne(PyObject*
f, PyObject *o) {
40357 if (!(
f = __Pyx_GetStdout()))
40361 if (PyFile_SoftSpace(
f, 0)) {
40362 if (PyFile_WriteString(
" ",
f) < 0)
40365 if (PyFile_WriteObject(o,
f, Py_PRINT_RAW) < 0)
40367 if (PyFile_WriteString(
"\n",
f) < 0)
40376 return __Pyx_Print(
f, NULL, 0);
40379 static int __Pyx_PrintOne(PyObject* stream, PyObject *o) {
40381 PyObject* arg_tuple = PyTuple_Pack(1, o);
40382 if (unlikely(!arg_tuple))
40384 res = __Pyx_Print(stream, arg_tuple, 1);
40385 Py_DECREF(arg_tuple);
40391 static __Pyx_memviewslice
40392 __pyx_memoryview_copy_new_contig(
const __Pyx_memviewslice *from_mvs,
40393 const char *mode,
int ndim,
40394 size_t sizeof_dtype,
int contig_flag,
40395 int dtype_is_object)
40397 __Pyx_RefNannyDeclarations
40399 __Pyx_memviewslice new_mvs = { 0, 0, { 0 }, { 0 }, { 0 } };
40400 struct __pyx_memoryview_obj *from_memview = from_mvs->memview;
40401 Py_buffer *buf = &from_memview->view;
40402 PyObject *shape_tuple = NULL;
40403 PyObject *temp_int = NULL;
40404 struct __pyx_array_obj *array_obj = NULL;
40405 struct __pyx_memoryview_obj *memview_obj = NULL;
40406 __Pyx_RefNannySetupContext(
"__pyx_memoryview_copy_new_contig", 0);
40407 for (i = 0; i < ndim; i++) {
40408 if (from_mvs->suboffsets[i] >= 0) {
40409 PyErr_Format(PyExc_ValueError,
"Cannot copy memoryview slice with "
40410 "indirect dimensions (axis %d)", i);
40414 shape_tuple = PyTuple_New(ndim);
40415 if (unlikely(!shape_tuple)) {
40418 __Pyx_GOTREF(shape_tuple);
40419 for(i = 0; i < ndim; i++) {
40420 temp_int = PyInt_FromSsize_t(from_mvs->shape[i]);
40421 if(unlikely(!temp_int)) {
40424 PyTuple_SET_ITEM(shape_tuple, i, temp_int);
40428 array_obj = __pyx_array_new(shape_tuple, sizeof_dtype, buf->format, (
char *) mode, NULL);
40429 if (unlikely(!array_obj)) {
40432 __Pyx_GOTREF(array_obj);
40433 memview_obj = (
struct __pyx_memoryview_obj *) __pyx_memoryview_new(
40434 (PyObject *) array_obj, contig_flag,
40436 from_mvs->memview->typeinfo);
40437 if (unlikely(!memview_obj))
40439 if (unlikely(__Pyx_init_memviewslice(memview_obj, ndim, &new_mvs, 1) < 0))
40441 if (unlikely(__pyx_memoryview_copy_contents(*from_mvs, new_mvs, ndim, ndim,
40442 dtype_is_object) < 0))
40446 __Pyx_XDECREF(new_mvs.memview);
40447 new_mvs.memview = NULL;
40448 new_mvs.data = NULL;
40450 __Pyx_XDECREF(shape_tuple);
40451 __Pyx_XDECREF(temp_int);
40452 __Pyx_XDECREF(array_obj);
40453 __Pyx_RefNannyFinishContext();
40459 __Pyx_init_memviewslice(
struct __pyx_memoryview_obj *memview,
40461 __Pyx_memviewslice *memviewslice,
40462 int memview_is_new_reference)
40464 __Pyx_RefNannyDeclarations
40466 Py_buffer *buf = &memview->view;
40467 __Pyx_RefNannySetupContext(
"init_memviewslice", 0);
40469 PyErr_SetString(PyExc_ValueError,
40472 }
else if (memviewslice->memview || memviewslice->data) {
40473 PyErr_SetString(PyExc_ValueError,
40474 "memviewslice is already initialized!");
40477 if (buf->strides) {
40478 for (i = 0; i < ndim; i++) {
40479 memviewslice->strides[i] = buf->strides[i];
40482 Py_ssize_t stride = buf->itemsize;
40483 for (i = ndim - 1; i >= 0; i--) {
40484 memviewslice->strides[i] = stride;
40485 stride *= buf->shape[i];
40488 for (i = 0; i < ndim; i++) {
40489 memviewslice->shape[i] = buf->shape[i];
40490 if (buf->suboffsets) {
40491 memviewslice->suboffsets[i] = buf->suboffsets[i];
40493 memviewslice->suboffsets[i] = -1;
40496 memviewslice->memview = memview;
40497 memviewslice->data = (
char *)buf->buf;
40498 if (__pyx_add_acquisition_count(memview) == 0 && !memview_is_new_reference) {
40499 Py_INCREF(memview);
40504 memviewslice->memview = 0;
40505 memviewslice->data = 0;
40508 __Pyx_RefNannyFinishContext();
40511 #ifndef Py_NO_RETURN
40512 #define Py_NO_RETURN
40514 static void __pyx_fatalerror(
const char *fmt, ...) Py_NO_RETURN {
40517 #ifdef HAVE_STDARG_PROTOTYPES
40518 va_start(vargs, fmt);
40522 vsnprintf(msg, 200, fmt, vargs);
40524 Py_FatalError(msg);
40526 static CYTHON_INLINE
int
40527 __pyx_add_acquisition_count_locked(__pyx_atomic_int *acquisition_count,
40528 PyThread_type_lock lock)
40531 PyThread_acquire_lock(lock, 1);
40532 result = (*acquisition_count)++;
40533 PyThread_release_lock(lock);
40536 static CYTHON_INLINE
int
40537 __pyx_sub_acquisition_count_locked(__pyx_atomic_int *acquisition_count,
40538 PyThread_type_lock lock)
40541 PyThread_acquire_lock(lock, 1);
40542 result = (*acquisition_count)--;
40543 PyThread_release_lock(lock);
40546 static CYTHON_INLINE
void
40547 __Pyx_INC_MEMVIEW(__Pyx_memviewslice *memslice,
int have_gil,
int lineno)
40550 struct __pyx_memoryview_obj *memview = memslice->memview;
40551 if (!memview || (PyObject *) memview == Py_None)
40553 if (__pyx_get_slice_count(memview) < 0)
40554 __pyx_fatalerror(
"Acquisition count is %d (line %d)",
40555 __pyx_get_slice_count(memview), lineno);
40556 first_time = __pyx_add_acquisition_count(memview) == 0;
40559 Py_INCREF((PyObject *) memview);
40561 PyGILState_STATE _gilstate = PyGILState_Ensure();
40562 Py_INCREF((PyObject *) memview);
40563 PyGILState_Release(_gilstate);
40567 static CYTHON_INLINE
void __Pyx_XDEC_MEMVIEW(__Pyx_memviewslice *memslice,
40568 int have_gil,
int lineno) {
40570 struct __pyx_memoryview_obj *memview = memslice->memview;
40573 }
else if ((PyObject *) memview == Py_None) {
40574 memslice->memview = NULL;
40577 if (__pyx_get_slice_count(memview) <= 0)
40578 __pyx_fatalerror(
"Acquisition count is %d (line %d)",
40579 __pyx_get_slice_count(memview), lineno);
40580 last_time = __pyx_sub_acquisition_count(memview) == 1;
40581 memslice->data = NULL;
40584 Py_CLEAR(memslice->memview);
40586 PyGILState_STATE _gilstate = PyGILState_Ensure();
40587 Py_CLEAR(memslice->memview);
40588 PyGILState_Release(_gilstate);
40591 memslice->memview = NULL;
40596 static CYTHON_INLINE
long __Pyx_PyInt_As_long(PyObject *x) {
40597 const long neg_one = (long) ((
long) 0 - (long) 1), const_zero = (long) 0;
40598 const int is_unsigned = neg_one > const_zero;
40599 #if PY_MAJOR_VERSION < 3
40600 if (likely(PyInt_Check(x))) {
40601 if (
sizeof(
long) <
sizeof(long)) {
40602 __PYX_VERIFY_RETURN_INT(
long,
long, PyInt_AS_LONG(x))
40604 long val = PyInt_AS_LONG(x);
40605 if (is_unsigned && unlikely(val < 0)) {
40606 goto raise_neg_overflow;
40612 if (likely(PyLong_Check(x))) {
40614 #if CYTHON_USE_PYLONG_INTERNALS
40615 const digit* digits = ((PyLongObject*)x)->ob_digit;
40616 switch (Py_SIZE(x)) {
40617 case 0:
return (
long) 0;
40618 case 1: __PYX_VERIFY_RETURN_INT(
long, digit, digits[0])
40620 if (8 *
sizeof(
long) > 1 * PyLong_SHIFT) {
40621 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
40622 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40623 }
else if (8 *
sizeof(
long) >= 2 * PyLong_SHIFT) {
40624 return (
long) (((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0]));
40629 if (8 *
sizeof(
long) > 2 * PyLong_SHIFT) {
40630 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
40631 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40632 }
else if (8 *
sizeof(
long) >= 3 * PyLong_SHIFT) {
40633 return (
long) (((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
40638 if (8 *
sizeof(
long) > 3 * PyLong_SHIFT) {
40639 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
40640 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40641 }
else if (8 *
sizeof(
long) >= 4 * PyLong_SHIFT) {
40642 return (
long) (((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0]));
40648 #if CYTHON_COMPILING_IN_CPYTHON
40649 if (unlikely(Py_SIZE(x) < 0)) {
40650 goto raise_neg_overflow;
40654 int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
40655 if (unlikely(result < 0))
40657 if (unlikely(result == 1))
40658 goto raise_neg_overflow;
40661 if (
sizeof(
long) <=
sizeof(
unsigned long)) {
40662 __PYX_VERIFY_RETURN_INT_EXC(
long,
unsigned long, PyLong_AsUnsignedLong(x))
40663 #ifdef HAVE_LONG_LONG
40664 }
else if (
sizeof(
long) <=
sizeof(
unsigned PY_LONG_LONG)) {
40665 __PYX_VERIFY_RETURN_INT_EXC(
long,
unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
40669 #if CYTHON_USE_PYLONG_INTERNALS
40670 const digit* digits = ((PyLongObject*)x)->ob_digit;
40671 switch (Py_SIZE(x)) {
40672 case 0:
return (
long) 0;
40673 case -1: __PYX_VERIFY_RETURN_INT(
long, sdigit, (sdigit) (-(sdigit)digits[0]))
40674 case 1: __PYX_VERIFY_RETURN_INT(
long, digit, +digits[0])
40676 if (8 *
sizeof(
long) - 1 > 1 * PyLong_SHIFT) {
40677 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
40678 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40679 }
else if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
40680 return (
long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
40685 if (8 *
sizeof(
long) > 1 * PyLong_SHIFT) {
40686 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
40687 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40688 }
else if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
40689 return (
long) ((((((long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
40694 if (8 *
sizeof(
long) - 1 > 2 * PyLong_SHIFT) {
40695 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
40696 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40697 }
else if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
40698 return (
long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
40703 if (8 *
sizeof(
long) > 2 * PyLong_SHIFT) {
40704 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
40705 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40706 }
else if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
40707 return (
long) ((((((((long)digits[2]) << PyLong_SHIFT) | (
long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
40712 if (8 *
sizeof(
long) - 1 > 3 * PyLong_SHIFT) {
40713 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
40714 __PYX_VERIFY_RETURN_INT(
long,
long, -(
long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40715 }
else if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
40716 return (
long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
40721 if (8 *
sizeof(
long) > 3 * PyLong_SHIFT) {
40722 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
40723 __PYX_VERIFY_RETURN_INT(
long,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40724 }
else if (8 *
sizeof(
long) - 1 > 4 * PyLong_SHIFT) {
40725 return (
long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (
long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (
long)digits[0])));
40731 if (
sizeof(
long) <=
sizeof(long)) {
40732 __PYX_VERIFY_RETURN_INT_EXC(
long,
long, PyLong_AsLong(x))
40733 #ifdef HAVE_LONG_LONG
40734 }
else if (
sizeof(
long) <=
sizeof(PY_LONG_LONG)) {
40735 __PYX_VERIFY_RETURN_INT_EXC(
long, PY_LONG_LONG, PyLong_AsLongLong(x))
40740 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
40741 PyErr_SetString(PyExc_RuntimeError,
40742 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
40745 PyObject *
v = __Pyx_PyNumber_IntOrLong(x);
40746 #if PY_MAJOR_VERSION < 3
40747 if (likely(
v) && !PyLong_Check(
v)) {
40749 v = PyNumber_Long(tmp);
40754 int one = 1;
int is_little = (int)*(
unsigned char *)&one;
40755 unsigned char *bytes = (
unsigned char *)&val;
40756 int ret = _PyLong_AsByteArray((PyLongObject *)
v,
40757 bytes,
sizeof(val),
40758 is_little, !is_unsigned);
40768 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
40769 if (!tmp)
return (
long) -1;
40770 val = __Pyx_PyInt_As_long(tmp);
40775 PyErr_SetString(PyExc_OverflowError,
40776 "value too large to convert to long");
40778 raise_neg_overflow:
40779 PyErr_SetString(PyExc_OverflowError,
40780 "can't convert negative value to long");
40785 static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(
long value) {
40786 const long neg_one = (long) ((
long) 0 - (long) 1), const_zero = (long) 0;
40787 const int is_unsigned = neg_one > const_zero;
40789 if (
sizeof(
long) <
sizeof(long)) {
40790 return PyInt_FromLong((
long) value);
40791 }
else if (
sizeof(
long) <=
sizeof(
unsigned long)) {
40792 return PyLong_FromUnsignedLong((
unsigned long) value);
40793 #ifdef HAVE_LONG_LONG
40794 }
else if (
sizeof(
long) <=
sizeof(
unsigned PY_LONG_LONG)) {
40795 return PyLong_FromUnsignedLongLong((
unsigned PY_LONG_LONG) value);
40799 if (
sizeof(
long) <=
sizeof(
long)) {
40800 return PyInt_FromLong((
long) value);
40801 #ifdef HAVE_LONG_LONG
40802 }
else if (
sizeof(
long) <=
sizeof(PY_LONG_LONG)) {
40803 return PyLong_FromLongLong((PY_LONG_LONG) value);
40808 int one = 1;
int little = (int)*(
unsigned char *)&one;
40809 unsigned char *bytes = (
unsigned char *)&value;
40810 return _PyLong_FromByteArray(bytes,
sizeof(
long),
40811 little, !is_unsigned);
40816 static CYTHON_INLINE
char __Pyx_PyInt_As_char(PyObject *x) {
40817 const char neg_one = (char) ((
char) 0 - (char) 1), const_zero = (char) 0;
40818 const int is_unsigned = neg_one > const_zero;
40819 #if PY_MAJOR_VERSION < 3
40820 if (likely(PyInt_Check(x))) {
40821 if (
sizeof(
char) <
sizeof(long)) {
40822 __PYX_VERIFY_RETURN_INT(
char,
long, PyInt_AS_LONG(x))
40824 long val = PyInt_AS_LONG(x);
40825 if (is_unsigned && unlikely(val < 0)) {
40826 goto raise_neg_overflow;
40832 if (likely(PyLong_Check(x))) {
40834 #if CYTHON_USE_PYLONG_INTERNALS
40835 const digit* digits = ((PyLongObject*)x)->ob_digit;
40836 switch (Py_SIZE(x)) {
40837 case 0:
return (
char) 0;
40838 case 1: __PYX_VERIFY_RETURN_INT(
char, digit, digits[0])
40840 if (8 *
sizeof(
char) > 1 * PyLong_SHIFT) {
40841 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
40842 __PYX_VERIFY_RETURN_INT(
char,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40843 }
else if (8 *
sizeof(
char) >= 2 * PyLong_SHIFT) {
40844 return (
char) (((((char)digits[1]) << PyLong_SHIFT) | (
char)digits[0]));
40849 if (8 *
sizeof(
char) > 2 * PyLong_SHIFT) {
40850 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
40851 __PYX_VERIFY_RETURN_INT(
char,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40852 }
else if (8 *
sizeof(
char) >= 3 * PyLong_SHIFT) {
40853 return (
char) (((((((char)digits[2]) << PyLong_SHIFT) | (
char)digits[1]) << PyLong_SHIFT) | (char)digits[0]));
40858 if (8 *
sizeof(
char) > 3 * PyLong_SHIFT) {
40859 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
40860 __PYX_VERIFY_RETURN_INT(
char,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40861 }
else if (8 *
sizeof(
char) >= 4 * PyLong_SHIFT) {
40862 return (
char) (((((((((char)digits[3]) << PyLong_SHIFT) | (
char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (
char)digits[0]));
40868 #if CYTHON_COMPILING_IN_CPYTHON
40869 if (unlikely(Py_SIZE(x) < 0)) {
40870 goto raise_neg_overflow;
40874 int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
40875 if (unlikely(result < 0))
40877 if (unlikely(result == 1))
40878 goto raise_neg_overflow;
40881 if (
sizeof(
char) <=
sizeof(
unsigned long)) {
40882 __PYX_VERIFY_RETURN_INT_EXC(
char,
unsigned long, PyLong_AsUnsignedLong(x))
40883 #ifdef HAVE_LONG_LONG
40884 }
else if (
sizeof(
char) <=
sizeof(
unsigned PY_LONG_LONG)) {
40885 __PYX_VERIFY_RETURN_INT_EXC(
char,
unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
40889 #if CYTHON_USE_PYLONG_INTERNALS
40890 const digit* digits = ((PyLongObject*)x)->ob_digit;
40891 switch (Py_SIZE(x)) {
40892 case 0:
return (
char) 0;
40893 case -1: __PYX_VERIFY_RETURN_INT(
char, sdigit, (sdigit) (-(sdigit)digits[0]))
40894 case 1: __PYX_VERIFY_RETURN_INT(
char, digit, +digits[0])
40896 if (8 *
sizeof(
char) - 1 > 1 * PyLong_SHIFT) {
40897 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
40898 __PYX_VERIFY_RETURN_INT(
char,
long, -(
long) (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40899 }
else if (8 *
sizeof(
char) - 1 > 2 * PyLong_SHIFT) {
40900 return (
char) (((char)-1)*(((((char)digits[1]) << PyLong_SHIFT) | (
char)digits[0])));
40905 if (8 *
sizeof(
char) > 1 * PyLong_SHIFT) {
40906 if (8 *
sizeof(
unsigned long) > 2 * PyLong_SHIFT) {
40907 __PYX_VERIFY_RETURN_INT(
char,
unsigned long, (((((
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40908 }
else if (8 *
sizeof(
char) - 1 > 2 * PyLong_SHIFT) {
40909 return (
char) ((((((char)digits[1]) << PyLong_SHIFT) | (
char)digits[0])));
40914 if (8 *
sizeof(
char) - 1 > 2 * PyLong_SHIFT) {
40915 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
40916 __PYX_VERIFY_RETURN_INT(
char,
long, -(
long) (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40917 }
else if (8 *
sizeof(
char) - 1 > 3 * PyLong_SHIFT) {
40918 return (
char) (((char)-1)*(((((((char)digits[2]) << PyLong_SHIFT) | (
char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
40923 if (8 *
sizeof(
char) > 2 * PyLong_SHIFT) {
40924 if (8 *
sizeof(
unsigned long) > 3 * PyLong_SHIFT) {
40925 __PYX_VERIFY_RETURN_INT(
char,
unsigned long, (((((((
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40926 }
else if (8 *
sizeof(
char) - 1 > 3 * PyLong_SHIFT) {
40927 return (
char) ((((((((char)digits[2]) << PyLong_SHIFT) | (
char)digits[1]) << PyLong_SHIFT) | (char)digits[0])));
40932 if (8 *
sizeof(
char) - 1 > 3 * PyLong_SHIFT) {
40933 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
40934 __PYX_VERIFY_RETURN_INT(
char,
long, -(
long) (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40935 }
else if (8 *
sizeof(
char) - 1 > 4 * PyLong_SHIFT) {
40936 return (
char) (((char)-1)*(((((((((char)digits[3]) << PyLong_SHIFT) | (
char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (
char)digits[0])));
40941 if (8 *
sizeof(
char) > 3 * PyLong_SHIFT) {
40942 if (8 *
sizeof(
unsigned long) > 4 * PyLong_SHIFT) {
40943 __PYX_VERIFY_RETURN_INT(
char,
unsigned long, (((((((((
unsigned long)digits[3]) << PyLong_SHIFT) | (
unsigned long)digits[2]) << PyLong_SHIFT) | (
unsigned long)digits[1]) << PyLong_SHIFT) | (
unsigned long)digits[0])))
40944 }
else if (8 *
sizeof(
char) - 1 > 4 * PyLong_SHIFT) {
40945 return (
char) ((((((((((char)digits[3]) << PyLong_SHIFT) | (
char)digits[2]) << PyLong_SHIFT) | (char)digits[1]) << PyLong_SHIFT) | (
char)digits[0])));
40951 if (
sizeof(
char) <=
sizeof(long)) {
40952 __PYX_VERIFY_RETURN_INT_EXC(
char,
long, PyLong_AsLong(x))
40953 #ifdef HAVE_LONG_LONG
40954 }
else if (
sizeof(
char) <=
sizeof(PY_LONG_LONG)) {
40955 __PYX_VERIFY_RETURN_INT_EXC(
char, PY_LONG_LONG, PyLong_AsLongLong(x))
40960 #if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
40961 PyErr_SetString(PyExc_RuntimeError,
40962 "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
40965 PyObject *
v = __Pyx_PyNumber_IntOrLong(x);
40966 #if PY_MAJOR_VERSION < 3
40967 if (likely(
v) && !PyLong_Check(
v)) {
40969 v = PyNumber_Long(tmp);
40974 int one = 1;
int is_little = (int)*(
unsigned char *)&one;
40975 unsigned char *bytes = (
unsigned char *)&val;
40976 int ret = _PyLong_AsByteArray((PyLongObject *)
v,
40977 bytes,
sizeof(val),
40978 is_little, !is_unsigned);
40988 PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
40989 if (!tmp)
return (
char) -1;
40990 val = __Pyx_PyInt_As_char(tmp);
40995 PyErr_SetString(PyExc_OverflowError,
40996 "value too large to convert to char");
40998 raise_neg_overflow:
40999 PyErr_SetString(PyExc_OverflowError,
41000 "can't convert negative value to char");
41005 static int __Pyx_check_binary_version(
void) {
41006 char ctversion[4], rtversion[4];
41007 PyOS_snprintf(ctversion, 4,
"%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
41008 PyOS_snprintf(rtversion, 4,
"%s", Py_GetVersion());
41009 if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) {
41011 PyOS_snprintf(message,
sizeof(message),
41012 "compiletime version %s of module '%.100s' "
41013 "does not match runtime version %s",
41014 ctversion, __Pyx_MODULE_NAME, rtversion);
41015 return PyErr_WarnEx(NULL, message, 1);
41021 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
41023 #if PY_MAJOR_VERSION < 3
41024 if (t->is_unicode) {
41025 *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
41026 }
else if (t->intern) {
41027 *t->p = PyString_InternFromString(t->s);
41029 *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
41032 if (t->is_unicode | t->is_str) {
41034 *t->p = PyUnicode_InternFromString(t->s);
41035 }
else if (t->encoding) {
41036 *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
41038 *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
41041 *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
41046 if (PyObject_Hash(*t->p) == -1)
41053 static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(
const char* c_str) {
41054 return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
41056 static CYTHON_INLINE
const char* __Pyx_PyObject_AsString(PyObject* o) {
41058 return __Pyx_PyObject_AsStringAndSize(o, &ignore);
41060 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
41061 #if !CYTHON_PEP393_ENABLED
41062 static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
41064 PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
41065 if (!defenc)
return NULL;
41066 defenc_c = PyBytes_AS_STRING(defenc);
41067 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
41069 char* end = defenc_c + PyBytes_GET_SIZE(defenc);
41071 for (
c = defenc_c;
c < end;
c++) {
41072 if ((
unsigned char) (*
c) >= 128) {
41073 PyUnicode_AsASCIIString(o);
41079 *length = PyBytes_GET_SIZE(defenc);
41083 static CYTHON_INLINE
const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
41084 if (unlikely(__Pyx_PyUnicode_READY(o) == -1))
return NULL;
41085 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
41086 if (likely(PyUnicode_IS_ASCII(o))) {
41087 *length = PyUnicode_GET_LENGTH(o);
41088 return PyUnicode_AsUTF8(o);
41090 PyUnicode_AsASCIIString(o);
41094 return PyUnicode_AsUTF8AndSize(o, length);
41099 static CYTHON_INLINE
const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
41100 #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
41102 #
if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
41103 __Pyx_sys_getdefaultencoding_not_ascii &&
41105 PyUnicode_Check(o)) {
41106 return __Pyx_PyUnicode_AsStringAndSize(o, length);
41109 #if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
41110 if (PyByteArray_Check(o)) {
41111 *length = PyByteArray_GET_SIZE(o);
41112 return PyByteArray_AS_STRING(o);
41117 int r = PyBytes_AsStringAndSize(o, &result, length);
41118 if (unlikely(
r < 0)) {
41125 static CYTHON_INLINE
int __Pyx_PyObject_IsTrue(PyObject* x) {
41126 int is_true = x == Py_True;
41127 if (is_true | (x == Py_False) | (x == Py_None))
return is_true;
41128 else return PyObject_IsTrue(x);
41130 static CYTHON_INLINE
int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
41132 if (unlikely(!x))
return -1;
41133 retval = __Pyx_PyObject_IsTrue(x);
41137 static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result,
const char* type_name) {
41138 #if PY_MAJOR_VERSION >= 3
41139 if (PyLong_Check(result)) {
41140 if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
41141 "__int__ returned non-int (type %.200s). "
41142 "The ability to return an instance of a strict subclass of int "
41143 "is deprecated, and may be removed in a future version of Python.",
41144 Py_TYPE(result)->tp_name)) {
41151 PyErr_Format(PyExc_TypeError,
41152 "__%.4s__ returned non-%.4s (type %.200s)",
41153 type_name, type_name, Py_TYPE(result)->tp_name);
41157 static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
41158 #if CYTHON_USE_TYPE_SLOTS
41159 PyNumberMethods *m;
41161 const char *name = NULL;
41162 PyObject *res = NULL;
41163 #if PY_MAJOR_VERSION < 3
41164 if (likely(PyInt_Check(x) || PyLong_Check(x)))
41166 if (likely(PyLong_Check(x)))
41168 return __Pyx_NewRef(x);
41169 #if CYTHON_USE_TYPE_SLOTS
41170 m = Py_TYPE(x)->tp_as_number;
41171 #if PY_MAJOR_VERSION < 3
41172 if (m && m->nb_int) {
41174 res = m->nb_int(x);
41176 else if (m && m->nb_long) {
41178 res = m->nb_long(x);
41181 if (likely(m && m->nb_int)) {
41183 res = m->nb_int(x);
41187 if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
41188 res = PyNumber_Int(x);
41192 #if PY_MAJOR_VERSION < 3
41193 if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) {
41195 if (unlikely(!PyLong_CheckExact(res))) {
41197 return __Pyx_PyNumber_IntOrLongWrongResultType(res, name);
41200 else if (!PyErr_Occurred()) {
41201 PyErr_SetString(PyExc_TypeError,
41202 "an integer is required");
41206 static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
41209 #if PY_MAJOR_VERSION < 3
41210 if (likely(PyInt_CheckExact(b))) {
41211 if (
sizeof(Py_ssize_t) >=
sizeof(
long))
41212 return PyInt_AS_LONG(b);
41214 return PyInt_AsSsize_t(b);
41217 if (likely(PyLong_CheckExact(b))) {
41218 #if CYTHON_USE_PYLONG_INTERNALS
41219 const digit* digits = ((PyLongObject*)b)->ob_digit;
41220 const Py_ssize_t size = Py_SIZE(b);
41221 if (likely(__Pyx_sst_abs(size) <= 1)) {
41222 ival = likely(size) ? digits[0] : 0;
41223 if (size == -1) ival = -ival;
41228 if (8 *
sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
41229 return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
41233 if (8 *
sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
41234 return -(Py_ssize_t) (((((
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
41238 if (8 *
sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
41239 return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
41243 if (8 *
sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
41244 return -(Py_ssize_t) (((((((
size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
41248 if (8 *
sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
41249 return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (
size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (
size_t)digits[0]));
41253 if (8 *
sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
41254 return -(Py_ssize_t) (((((((((
size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (
size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
41260 return PyLong_AsSsize_t(b);
41262 x = PyNumber_Index(b);
41264 ival = PyInt_AsSsize_t(x);
41268 static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(
long b) {
41269 return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
41271 static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(
size_t ival) {
41272 return PyInt_FromSize_t(ival);